Docker “ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network”

前端 未结 19 690
别那么骄傲
别那么骄傲 2020-12-12 10:48

I have a directory apkmirror-scraper-compose with the following structure:

.
├── docker-compose.yml
├── privoxy
│   ├── config
│   └── Dockerfil         


        
19条回答
  •  一个人的身影
    2020-12-12 11:24

    I ran in this problem with OpenVPN working as well and I've found a solution where you should NOT stop/start OpenVPN server.

    Idea that You should specify what exactly subnet you want to use. In docker-compose.yml write:

    networks:
      default:
        driver: bridge
        ipam:
          config:
            - subnet: 172.16.57.0/24
    

    That's it. Now, default network will be used and if your VPN did not assign you something from 172.16.57.* subnet, you're fine.

提交回复
热议问题