Sign inSign up

maxduke/polipo-with-conf-dir

By maxduke

Updated over 4 years ago

Run polipo with all configurations in a specific folder

Image
0

100K+

maxduke/polipo-with-conf-dir repository overview

docker-polipo-with-conf-dir

Docker Pulls Docker Stars Docker Automated

Usage

  1. Prepare config and download directories with following commands.

    # Create config dir
    mkdir /storage/polipo/conf
    
  2. Put all you polipo conf file in that floder.

    copy *.conf /storage/polipo/conf
    
  3. 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:

Parameters

The 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 with

It is based on alpine linux, for shell access whilst the container is running do docker exec -it maxduke/polipo-with-conf-dir /bin/sh.

User / Group Identifiers

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)

Tag summary

Content type

Image

Digest

Size

3.1 MB

Last updated

over 4 years ago

docker pull maxduke/polipo-with-conf-dir