Sign inSign up

bastjan/saveomat

By bastjan

Updated about 5 years ago

docker save with ease. With a simple HTTP API.

Image
0

644

bastjan/saveomat repository overview

Save-O-Mat

gh actions codecov Docker Pulls

docker save with ease. With a simple HTTP API.

docker run -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 bastjan/saveomat

cat <<EOF > images.txt
alpine
busybox
EOF
curl -fF "[email protected]" localhost:8080/tar > images.tar
# OR
wget 'localhost:8080/tar?image=hello-world&image=busybox' -O images.tar

FAQ

Hosting Under a Subpath

The BASE_URL environment variable allows hosting under a subpath.

If the value of BASE_URL is /saveomat the image request becomes localhost:8080/saveomat/tar.

Authentication

To pull private repositories or images an optional config.json can be provided. The file should be in the docker client config format and can usually be found under $HOME/.docker/config.json.

⚠️ While private images are not accessible without authentication, they are cached on the server.

Authentication only works for POST requests.

curl -fF "[email protected]" -F "config.json=@$HOME/.docker/config.json" http://localhost:8080/tar > images.tar

Tag summary

Content type

Image

Digest

Size

15.6 MB

Last updated

about 5 years ago

docker pull bastjan/saveomat