Skip to content

Instantly share code, notes, and snippets.

@sneak
Created March 26, 2019 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneak/fbf5263bf951b06c3d4de1cc44af81a8 to your computer and use it in GitHub Desktop.
Save sneak/fbf5263bf951b06c3d4de1cc44af81a8 to your computer and use it in GitHub Desktop.
docker run \
--name ubuntu-mirror \
-e UBUNTU_MIRROR_SOURCE=us.archive.ubuntu.com \
-e MIRROR_INTERVAL_SECONDS=10800 \
-e MIRROR_CATEGORIES=main,universe,restricted,multiverse \
-e MIRROR_ARCHITECTURES=amd64 \
-e UBUNTU_MIRROR_PROJECTS=bionic,bionic-updates,bionic-security,bionic-backports \
-v /storage/mirrors/ubuntu/ubuntu:/var/mirror/ubuntu \
-p 172.17.0.1:80:80/tcp \
-d sneak/ubuntumirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment