Run polipo with all configurations in a specific folder
100K+
Prepare config and download directories with following commands.
# Create config dir
mkdir /storage/polipo/conf
Put all you polipo conf file in that floder.
copy *.conf /storage/polipo/conf
Run following command to start polipo instances
docker run \
-d \
--network host \
--name polipo \
-v /storage/polipo/conf:/polipo/conf \
maxduke/polipo-with-conf-dir
Note:
polipo.conf: Config sampleThe parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.
--network host - run as host mode, so that port mapping is not needed-v /storage/polipo/conf:/polipo/conf - where polipo config files that polipo should run withIt is based on alpine linux, for shell access whilst the container is running do docker exec -it maxduke/polipo-with-conf-dir /bin/sh.
Sometimes when using data volumes (-v flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
In this instance -u 1001:1002. To find yours use id user as below:
$ id dockeruser
uid=1001(dockeruser) gid=1002(dockergroup) groups=1002(dockergroup)
Content type
Image
Digest
Size
3.1 MB
Last updated
over 4 years ago
docker pull maxduke/polipo-with-conf-dir