How to stop container in containerd/ctr

11.6k Views Asked by At

What is the equivalent of docker stop [containerID] using ctr? I can't seem to find it via contianer option or I am missing some ctr concepts...

1

There are 1 best solutions below

1
On

check the tasks which are running:

ctr task ls

Then you will see something like that

TASK PID STATUS

v0      62166    RUNNING

Do

ctr task kill v0

or

ctr task kill -s SIGKILL v0