Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
docker stop [containerID]使用 ctr的等价物是什么?我似乎无法通过 contianer 选项找到它,或者我错过了一些 ctr 概念......
docker stop [containerID]
检查正在运行的任务:
ctr task ls
然后你会看到类似的东西
任务 PID 状态 v0 62166 RUNNING
任务 PID 状态
v0 62166 RUNNING
做
ctr task kill v0
或者
ctr task kill -s SIGKILL v0