Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crictl support stop/rm multiple container/sandboxes #243

Closed
wanghaoran1988 opened this issue Feb 13, 2018 · 3 comments
Closed

crictl support stop/rm multiple container/sandboxes #243

wanghaoran1988 opened this issue Feb 13, 2018 · 3 comments
Milestone

Comments

@wanghaoran1988
Copy link

When I want to stop all the sandbox, I have to stop them one by one in the command line.
stop multiple sandboxes doesn't support now like this:

sudo crictl --runtime-endpoint /var/run/crio/crio.sock rmp a5ddc4fc8ea1e b4c30bf557c65

@Random-Liu
Copy link
Contributor

Random-Liu commented Feb 14, 2018

Sound good to me. Actually crictl ps -q | xargs crictl stop also doesn't work.
@feiskyer

@Random-Liu Random-Liu added this to the v1.0.0-beta.0 milestone Feb 14, 2018
@feiskyer
Copy link
Member

+1

@inattendu
Copy link

for line in $(crictl ps 2>/dev/null |grep -v CONTAINER|awk '{print $1}') ; do crictl stop $line; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants