dpns

docker pull & save

GPL-3.0 License

Stars
3
Committers
1

Docker Pull & Save

About

DPNS is a small script to pull a list of docker images and save them into a directory. Later those dumps can be loaded from disk into a local docker engine again.

This might help to sync images for offline docker hosts (w/o access to registries) or running Alpine Linux in diskless mode w/o adding the docker data directory (/var/lib/docker) to the local backup.

The following commands are provided:

  • dpns-load - loads docker image dumps into dockerd
  • dpns-run - loads docker image dumps and starts configured container stacks
    using docker-compose
  • dpns-save - pulls docker image versions and dumps them to disk and removes
    obsolete image dumps

Install on Alpine Linux

It is available in the testing repository of the edge branch:

~ # apk add dpns

Use rc-update to enable dpns to load docker images and run stacks on startup:

~ # rc-update add dpns
 * service dpns added to runlevel sysinit

Configuration

The configuration files are located within of the /etc/dpns directory:

  • dpns.conf - base configuration
  • images.conf - list of docker images to save and load
  • composes.conf - list of docker compose files/directories started by dpns-run
Package Rankings
Top 13.57% on Alpine-v3.13
Top 19.29% on Alpine-edge
Top 13.0% on Alpine-v3.12
Top 18.1% on Alpine-v3.16
Top 14.57% on Alpine-v3.14
Top 16.56% on Alpine-v3.15
Top 20.09% on Alpine-v3.17
Top 14.88% on Alpine-v3.18