You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeffrey Paul b4c6017871 enable autoindexing for ubuntu mirror 4 years ago
mirror Update 'mirror/' 4 years ago
.drone.yml revert .drone.yml 4 years ago
Dockerfile Update 'Dockerfile' 4 years ago
Makefile latest 8 years ago
README.markdown fix indentation in example 4 years ago fix bug 4 years ago
nginx.conf enable autoindexing for ubuntu mirror 4 years ago initial 8 years ago
sources.list update sources.list 4 years ago



Docker image for syncing ubuntu LTS mirrors to reduce network traffic and speed up build times.

Then even your builds (where you can't specify links to other containers by hostname) will go fast.



The mirror stores all the data in a docker volume at path /var/mirror/ubuntu. Map that somewhere else if you like.

Environment Variables

    • default amd64.
    • You may want i386,amd64.
    • Default main,universe,restricted,multiverse. Will use lots of disk.
    • You may want main,universe.
    • Default bionic,bionic-updates,bionic-security,bionic-backports,focal,focal-updates,focal-security,focal-backports.
    • You may want only focal,focal-updates,focal-security,focal-backports.
  • UBUNTU_MIRROR_UPSTREAM - upstream server to mirror from
    • default
    • You may want (where xx is your country code).
  • UBUNTU_ENABLE_SOURCE_MIRRORING - do we want to mirror all the source code too?
    • Default ``
    • You may want 1 if you want to use up even more disk for your mirror
  • MIRROR_UPDATE_INTERVAL_SECONDS - mirror update interval
    • default 43200 (12h)
    • You may want 10800 (3h)

Example Startup

docker rm -f local-ubuntu-mirror
docker run -d --name local-ubuntu-mirror \
    -v /storage/mirrors/ubuntu:/var/mirror/ubuntu \
    --env \
    --env UBUNTU_MIRROR_PROJECTS=focal,focal-updates,focal-security,focal-backports \
    -p 8080:80 \
    --restart unless-stopped \

Example CapRover Definition File

  "schemaVersion": 2,
  "imageName": "sneak/ubuntumirror@sha256:7de7cc8245106bb574029a2dedca5aa218af08d802b989cdc7857fb57f876a02"


sneak <>


This software is released into the public domain.