k3s default containerd (you can also add --docker use docker way), this comparison docker more lightweight, for use docker original command me to be easy to remember than
The commands comparison table:
id | containerd command | docker command | Remark |
---|---|---|---|
1 | ctr image ls | docker images | Acquiring image information |
2 | ctr image pull nginx | docker pull nginx | pull a nginx's image |
3 | ctr image tag nginx nginx-test | docker tag nginx nginx-test | nginx of a tag image |
4 | ctr image push nginx-test | docker push nginx-test | push nginx-test的image |
5 | ctr image pull nginx | docker pull nginx | pull a nginx's image |
6 | ctr image import nginx.tar | docker load<nginx.tar.gz | Import local mirror ctr does not support compression |
7 | ctr run -d --env 111 nginx-test nginx | docker run -d --name=nginx nginx-test | A container operation |
8 | ctr task ls | docker ps | Check operation of container |