Quantcast
Channel: Active questions tagged containers - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 164

How can I make an image out of a k8s specific pod container

$
0
0

I have made a pod, and it has only one container, I've been able to connect ot it by using kubectl exec -it -c <container_name> <pod_name> bash

And I've installed and done several stuff on it.

Now I wish to create an image out of that container to record all those changes in a single image.

I am using docker as the driver. And typically, if this container would have been just any other regular docker container (not managed by k8s), I would have just made a docker commit <container_name>

Is there a way to something similar but considering the container is managed inside a pod of k8s?


Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>