Comments (2)
I can run it with docker 19.03.8
on Ubuntu 20.04
now, and i had test it about 3 years ago with an older docker version.
root@x:/home/x# mkdir cron.d
root@x:/home/x# echo "53 0 * * * root /usr/bin/apt-mirror > /var/spool/apt-mirror/cron.log" > cron.d/apt-mirror
root@x:/home/x# chown root:root cron.d/apt-mirror
root@x:/home/x# chmod 644 cron.d/apt-mirror
root@x:/home/x# docker run -v $PWD/apt-mirror:/var/spool/apt-mirror -v $PWD/cron.d:/etc/cron.d helphi/apt-mirror:xenial
x@x:~$ ls apt-mirror/
cron.log mirror skel var
x@x:~$ cat apt-mirror/cron.log
Downloading 162 index files using 20 threads...
Begin time: Fri Jul 17 00:53:01 2020
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]...
I found that you did not use root
user to run the apt-mirror
command, maybe Synology NAS don't allow root
user to run the cron -f
command. So you may need to change the Dockerfile to let a regular user to run cron -f
, and then build your own docker image.
from dockerfile-apt-mirror.
Oh awesome :)
Looks like the apt-mirror code itself has some major flaws too which is a bit disappointing, but understandable if things act differently.
from dockerfile-apt-mirror.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile-apt-mirror.