docker-compose版本:2.18.1
networks配置:
networks:
bridge:
# Use a pre-existing network
external: true
docker-compose up报错:
Error response from daemon: user specified IP address is supported on user defined networks only
原因:如果要指定容器IP,需要新建一个网络,不能用系统默认的网络bridge