I'm following
Dockerize an apt-cacher-ng service
https://docs.docker.com/engine/examples/apt-cacher-ng/
but failed to get it up and running.
I've successfully followed to
To see the logfiles that are tailed in the default command, you can use:
$ docker logs -f test_apt_cacher_ng
and I get
$ docker logs -f test_apt_cacher_ng
WARNING: No configuration was read from file:sfnet_mirrors
Starting apt-cacher-ng: apt-cacher-ng.
But that's as far as I can go and can't go any further. I think my step:
$ docker run -d -p 3142:3142 --name test_apt_cacher_ng eg_apt_cacher_ng
does not give me an apt_cacher_ng
at port 3142
, because:
$ ip a s | grep 'docker0$'
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
$ nc -z 172.17.0.1 3142 | wc
0 0 0
$ lsof -i :3142 | wc
0 0 0
What else can I check to make sure I've got a dockerized apt-cacher-ng service, and it is also up and running?