启动docker报错:Error response from daemon: user specified IP address is supported only when connecting to networks with user configured subnets
在docker-compose.yml 中指定容器的网络和ip时,报错
Error response from daemon: user specified IP address is supported only when connecting to networks with user configured subnets
删除网络后重新创建,指定subnet的范围就可以了。
docker network create --driver bridge --subnet 192.18.10.0/24 --gateway 192.18.10.1 new_network

浙公网安备 33010602011771号