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

前端 未结 19 676
别那么骄傲
别那么骄傲 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:14

    Following Peter Hauge's comment, upon running docker network ls I saw (among other lines) the following:

    NETWORK ID          NAME                                    DRIVER              SCOPE
    dc6a83d13f44        bridge                                  bridge              local
    ea98225c7754        docker_gwbridge                         bridge              local
    107dcd8aa889        host                                    host                local
    

    The line with NAME and DRIVER as both host seems to be what he is referring to with "networks already created on your host". So, following https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430, I ran the command

    docker network rm $(docker network ls | grep "bridge" | awk '/ / { print $1 }')
    

    Now docker-compose up works (although newnym.py produces an error).

提交回复
热议问题