Visualize local Docker images and their layers in terminal
479
This is a simple console tool visualizing your Docker images.
Run the "latest" forward compatible Docker client version (works with host Docker 1.4.x up to 1.8.x)
$ docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm -ti doomhammer/layerpeeler
If you symlinked /var/lib/docker to somewhere else make sure you tell the Docker container where it is by providing the real path or by using readlink in volume parameter.
$ docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(readlink -f /var/lib/docker):/var/lib/docker --rm -ti doomhammer/layerpeeler
It is also possible to use the host docker binary by mounting the host docker bin directory. This way you make sure the Docker versions are the same between host and container. For example:
$ docker run -v $(which docker):/bin/docker -v /var/run/docker.sock:/var/run/docker.sock -v $(readlink -f /var/lib/docker):/var/lib/docker --rm -ti doomhammer/layerpeeler
Content type
Image
Digest
sha256:5f0839d7d…
Size
23 MB
Last updated
almost 11 years ago
docker pull doomhammer/layerpeeler