AliyunContainerService / pouch

An Efficient Enterprise-class Container Engine
https://pouchcontainer.io
Apache License 2.0
4.64k stars 949 forks source link

[feature] pouch cli supports kill function #2917

Closed lang710 closed 2 years ago

lang710 commented 5 years ago

Why you need it?

We should implement 'pouch kill' to kill one or more running containers.

How it could be?

Example: root@compatibility:~# pouch ps Name ID Status Created Image Runtime 3bc260 3bc260 Up 10 minutes 4 seconds ago busybox:latest runc

root@compatibility:~# pouch kill 3bc260 3bc260

root@compatibility:~# pouch ps Name ID Status Created Image Runtime

Other related information

Usage pouch kill [OPTIONS] CONTAINER [CONTAINER...]

Options Name, shorthand Default Description --signal , -s KILL Signal to send to the container

Extended description You can kill a container using the container’s ID, ID-prefix, or name.