Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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