Created
August 7, 2018 17:36
-
-
Save codeword/7983641111900e5554d4e6b8d670d9b0 to your computer and use it in GitHub Desktop.
Docker cheatsheet (OSX)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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