Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Created January 17, 2016 23:55
Show Gist options
  • Save RyanCCollins/18194351a0eb8018371d to your computer and use it in GitHub Desktop.
Save RyanCCollins/18194351a0eb8018371d to your computer and use it in GitHub Desktop.
Docker Cheatsheet

Remove all containers:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Inspect a container and Network bridging:

docker inspect
docker network inspect

Share filesystem

docker run -d -P --name my-name -v /a/host/dir:container/dir docker/repo conainer /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment