1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| alias ctr="ctr --address /run/k3s/containerd/containerd.sock --namespace k8s.io"
ctr ns ls
ctr i ls
ctr i pull docker.io/library/nginx:1.21
ctr i import image.tar
ctr i remove docker.io/library/nginx:1.21
ctr run --rm -t docker.io/library/debian:latest cont1
ctr c create -t docker.io/library/nginx:latest nginx_1
ctr c ls
ctr t start -d nginx_1
ctr t ls
ctr t exec -t --exec-id bash_1 nginx_1 bash
ctr t kill -9 nginx_1 ctr t rm -f nginx_1
ctr c rm nginx_1
|