2019-03-21 00:39:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
docker rm -f local-ubuntu-mirror
|
|
|
|
docker run -d --name local-ubuntu-mirror \
|
|
|
|
-v /storage/mirrors/ubuntu/ubuntu:/var/mirror/ubuntu \
|
2020-02-08 13:29:08 +00:00
|
|
|
--env UBUNTU_MIRROR_SOURCE=archive.ubuntu.com \
|
2019-03-21 00:39:38 +00:00
|
|
|
--env MIRROR_INTERVAL_SECONDS=10800 \
|
|
|
|
--env MIRROR_CATEGORIES=main,universe,restricted,multiverse \
|
|
|
|
--env MIRROR_ARCHITECTURES=amd64 \
|
2020-02-08 13:29:08 +00:00
|
|
|
--env UBUNTU_MIRROR_PROJECTS=bionic,bionic-updates,bionic-security,bionic-backports,focal,focal-updates,focal-security,focal-backports \
|
2019-03-21 00:39:38 +00:00
|
|
|
--dns 8.8.8.8 \
|
|
|
|
--dns 8.8.4.4 \
|
|
|
|
-p 172.17.0.1:80:80 \
|
|
|
|
--restart unless-stopped \
|
|
|
|
sneak/ubuntumirror:latest
|