How make openvpn work with docker

后端 未结 6 423
既然无缘
既然无缘 2020-12-07 09:32

I have recently installed privacy vpn, and it turns out that enabled openvpn breaks docker.

When I try to run docker-compose up i get following error <

6条回答
  •  一个人的身影
    2020-12-07 10:06

    You can also get docker-compose working if you define the subnet CIDR in your docker compose file:

    networks:
      your-network:
       ipam:
          config:
          - subnet: 172.16.238.0/24
            gateway: 172.16.238.1
    

    Another option: create first the network with the subnet CIDR and then specify in the docker compose file that you want to use this network:

    docker network create your-network --subnet 172.24.24.0/24
    

    In your docker compose file:

    networks:
      your-network:
        external: true
    

提交回复
热议问题