Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.53 KB

docker-aptutil

ImageLayers Size Docker Automated build Docker Pulls Docker Stars

Docker Image for aptutil containing go-apt-cacher and go-apt-mirror.

Usage

go-apt-mirror

Mount the configuration file for go-apt-cacher to /etc/go-apt-cacher.toml (read-only for added security).

Optionally, mount /var/spool/go-apt-cacher for persistence (required for --read-only).

$ docker container run \
    --read-only \
    -v /etc/go-apt-cacher.toml:/etc/go-apt-cacher.toml:ro \
    -v /var/spool/go-apt-cacher:/var/spool/go-apt-cacher \
    jacksgt/aptutil /go-apt-cacher

go-apt-mirror

Mount the configuration file for go-apt-cacher to /etc/apt/mirror.toml (read-only for added security).

Mount /var/spool/go-apt-mirror to store the mirrored files permanently (required for --read-only).

$ docker container run \
    --read-only \
    -v /etc/go-apt-mirror.toml:/etc/apt/mirror.toml:ro \
    -v /var/spool/go-apt-mirror:/var/spool/go-apt-mirror \
    jacksgt/aptutil /go-apt-mirror

License

Licensed under the MIT License (Expat). See LICENSE.