Skip to content

Instantly share code, notes, and snippets.

@gkhays
Created June 5, 2018 02:17
Show Gist options
  • Save gkhays/95dfab2125cbf92db26b9424c15b7842 to your computer and use it in GitHub Desktop.
Save gkhays/95dfab2125cbf92db26b9424c15b7842 to your computer and use it in GitHub Desktop.
Some Docker tips that should go into the Docker Cheat Sheet

View the file system of offline containers.

ls -l /var/lib/docker/aufs/diff/

Local storage of Docker images.

/var/lib/docker/<storage driver>

Deprecated Docker Tree Command

docker images --tree

Layers

ls -l /var/lib/docker/aufs/layers

docker commit <id> <name>
docker history <name>
docker save -o /tmp/<name> <name> (automatically TARs it)
docker load -i /tmp/<name>.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment