I used to work with docker images and now I am trying to run containers using containerd runtime. So, I want to share my prebuilt docker images with ctr, Is that possible ? How can I do that please ?
Asked
Active
Viewed 4,031 times
3
-
Does this answer your question? [How to run docker images in containerd using ctr in CLI?](https://stackoverflow.com/questions/59393496/how-to-run-docker-images-in-containerd-using-ctr-in-cli) – Gustavo Kawamoto Aug 19 '20 at 11:37
1 Answers
4
Yes, both implement the OCI Image Spec. If your image is accessible to your containerd installation, it should work seamless.
One example of running the redis:alpine image from Docker Hub:
ctr image pull docker.io/library/redis:alpine
ctr run docker.io/library/redis:alpine myid

Gustavo Kawamoto
- 2,665
- 18
- 27
-
1I want to use my local images that I've already pulled with docker or I build it locally , is there a way to do that ? – Saida Meftah Aug 19 '20 at 09:11
-
1You can save the image from `docker` using `docker save [your image] > image.tar` and then import it into `ctr` using `ctr image import image.tar`. – Gustavo Kawamoto Aug 19 '20 at 11:35
-