Skip to content

Instantly share code, notes, and snippets.

@codeword
Created August 7, 2018 17:36
Show Gist options
  • Save codeword/7983641111900e5554d4e6b8d670d9b0 to your computer and use it in GitHub Desktop.
Save codeword/7983641111900e5554d4e6b8d670d9b0 to your computer and use it in GitHub Desktop.
Docker cheatsheet (OSX)
#Inspect all containers
> docker ps -aq|xargs -J$ docker inspect $| jq .
#List Mount points for all containers
> docker ps -aq|xargs -J$ docker inspect -f "{{json .Mounts}}" $| jq .
#On OSX all mounted volumes are actually mounted on the hiddel Linux VM that Docker-For-Mac is running behind the scenes
# - To get to Linux virtual machine (actual machine running Docker process on OSX)
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment