Skip to content

Instantly share code, notes, and snippets.

@deivinsontejeda
Last active October 5, 2015 16:11
Show Gist options
  • Save deivinsontejeda/af1d3e300e2c08dbff30 to your computer and use it in GitHub Desktop.
Save deivinsontejeda/af1d3e300e2c08dbff30 to your computer and use it in GitHub Desktop.
Docker Command

This is a list of Docker command I often use. This does not intend to be a accurate command reference about Docker, it's just a way to not forget some commands

List all Volumens

for x in $(docker ps -qa | sed '1d'); do docker inspect -f '{{ .Volumes }}' ${x}; done

Stop Container by Name

docker ps -a | grep datacollector | awk '{ print $1 }' | xargs docker stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment