Skip to content

Instantly share code, notes, and snippets.

@bitliner
Created November 9, 2022 12:39
Show Gist options
  • Save bitliner/4677cb11769e052dffe0fe04731ada68 to your computer and use it in GitHub Desktop.
Save bitliner/4677cb11769e052dffe0fe04731ada68 to your computer and use it in GitHub Desktop.

Docker

List all containers

docker container ls -a

Find the volume of a docker container

docker inspect <containerID>

Find the /var/lib/docker on Mac OSx

docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh

ls /var/lib/docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment