containerd的用法
查看鏡像:
ctr image ls
查看容器:
ctr container ls
查看任務:
ctr task ls
拉鏡像:
ctr image pull [image]
創建容器:
ctr container create [image] [container] --mount type=bind,src=[str],dst=[dst],options=rbind:rw
創建任務:
ctr task start -d [container]
進入任務:
ctr task exec --exec-id 1 -t [task] /bin/bash
刪除任務:
kill -9 [PID]
ctr task rm [tast]
刪除容器:
ctr container rm [container]
刪除鏡像:
ctr image rm [image]

浙公網安備 33010602011771號