美文网首页
docker IPv4 address pool 不足问题

docker IPv4 address pool 不足问题

作者: 六弦极品 | 来源:发表于2020-05-08 09:56 被阅读0次

    docker-compose up 失败,提示:

    Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
    

    创建一个网络 compose_network

    docker network create --subnet 172.18.0.1/16 compose_network
    

    docker-compose.yml 文件应用:

    services:
      xxxxxxxxxx:
        container_name: xxxxxxxxxx
        image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        ports:
        - 10125:80
        networks:
          - compose_network
    version: '3'
    networks:
      compose_network:
        external: true
    

    相关文章

      网友评论

          本文标题:docker IPv4 address pool 不足问题

          本文链接:https://www.haomeiwen.com/subject/pjpxnhtx.html