saveomat

command module
v0.0.0-...-ae8f9ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 3 Imported by: 0

README

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 "images.txt=@images.txt" 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 "images.txt=@images.txt" -F "config.json=@$HOME/.docker/config.json" http://localhost:8080/tar > images.tar

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL