user specified IP address is supported only when connecting to networks with user configured subnets

Hits: 0

user specified IP address is supported only when connecting to networks with user configured subnets

Reason: To specify an IP for the
[docker] container, the network must be created through subnets

Solution:

  • Delete the corresponding network, for example, our network is my_net:docker network rm my_net

  • Docker solution:docker network create --driver bridge --subnet 172.40.1.0/24 --gateway 172.40.1.1 my_net

  • docker-compose solution:

You may also like...

Leave a Reply

Your email address will not be published.