add local mirror startup script
This commit is contained in:
parent
18828fdc8e
commit
f03fecaa5e
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker rm -f local-ubuntu-mirror
|
||||||
|
docker run -d --name local-ubuntu-mirror \
|
||||||
|
-v /storage/mirrors/ubuntu/ubuntu:/var/mirror/ubuntu \
|
||||||
|
--env UBUNTU_MIRROR_SOURCE=us.archive.ubuntu.com \
|
||||||
|
--env MIRROR_INTERVAL_SECONDS=10800 \
|
||||||
|
--env MIRROR_CATEGORIES=main,universe,restricted,multiverse \
|
||||||
|
--env MIRROR_ARCHITECTURES=amd64 \
|
||||||
|
--env UBUNTU_MIRROR_PROJECTS=bionic,bionic-updates,bionic-security,bionic-backports \
|
||||||
|
--dns 8.8.8.8 \
|
||||||
|
--dns 8.8.4.4 \
|
||||||
|
-p 172.17.0.1:80:80 \
|
||||||
|
--restart unless-stopped \
|
||||||
|
sneak/ubuntumirror:latest
|
Loading…
Reference in New Issue