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

-a, -all flag for kill, rm, rmi, start, stop and restart commands #1682

Closed
oguzbilgic opened this Issue Aug 26, 2013 · 3 comments

Comments

Projects
None yet
4 participants
@oguzbilgic
Copy link
Contributor

oguzbilgic commented Aug 26, 2013

I often find myself in need to run these container commands on all of containers that they apply. If people think -a flag could be useful for any/all of these commands, I would love to implement this.

@creack

This comment has been minimized.

Copy link
Contributor

creack commented Aug 26, 2013

tagging easyfix/help-wanted

@KSid

This comment has been minimized.

Copy link
Contributor

KSid commented Aug 27, 2013

Instead of a flag, would it be better to have some sort of filter? e.g.

docker rmi -filter * # remove all images
docker rmi -filter local/*
docker stop -filter * # stop all running containers
docker start -filter local/web # start all containers tagged local/web
docker rm -filter * -filter !e68f73d9622f # potentially support exclusions

If the flag is considered the best option then I feel using -all would be a better fit because some of these actions are destructive and it requires a little more conscious effort to type.

@crosbymichael

This comment has been minimized.

Copy link
Member

crosbymichael commented Aug 30, 2013

I'm going to close this because we are in favor of this for batch operations at this point in time.

docker rmi `docker images -q`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment