https://github.com/brthor/dind-save
https://github.com/brthor/dind-save
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brthor/dind-save
- Owner: brthor
- Created: 2019-04-04T23:33:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T23:37:31.000Z (over 7 years ago)
- Last Synced: 2025-05-15T09:43:11.332Z (about 1 year ago)
- Language: Dockerfile
- Size: 14.2 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker in Docker Save (dind-save)
=================================
This is a build repository for a docker image built on top of `dind` with a patched dockerd binary that hacks `docker save` to only save the last layer of an image, yet retains the ability to `docker load` the output archive.
The patched binary is built from https://github.com/brthor/engine
## Usage
Usage typically works by bind mounting `/var/lib/docker` into the `dind-save` container. It's best to understand the risks while doing this. YMMV.
Example:
`docker run --privileged -v /var/lib/docker/image:/var/lib/docker/image -v /var/lib/docker/overlay2:/var/lib/docker/overlay2 -p 127.0.0.1:7777:2375 brthornbury/dind-save:18.09`
Then you can perform a docker save of the last layer of your image like this:
`docker -H 127.0.0.1:7777 save your_image_tag -o ./your_archive_name.tar.gz`