How can I build an image of a running container that uses ContainerD runtime?
Basically I have a Kubernetes Cluster in GCP and the Node uses containerD runtime and I want to generate the image of a running container.
Thank you
To accomplish the desired task you will not be able to use CircleCI but instead you can use a tool called nerdctl, about which you can discover more on its official github page, https://github.com/containerd/nerdctl
You will have to install this tool on the node and then you can follow these steps to create an image from a container: First, you would have to pull the image using the “docker pull” command if you don’t already have it (in this case you will have to remake the modifications), then you can start the container using “docker create”. After the container is created and you have done the needed modification, you can do a commit using the “docker commit” command, then you will have to name your image according to the correct syntax that you have used when you first created the image in Container/Artifact Registry. The last step is to upload the updated image to Container/Artifact Registry by using the “docker push” command.