Jump to content
Sign in to follow this  
x

Docker: ERROR: for containers_your user specified IP address is supported only when connecting to networks with user configured subnets

Recommended Posts

При поднятии контейнера может вылететь ошибка сети.

ERROR: for containers_your user specified IP address is supported only when connecting to networks with user configured subnets

image.thumb.png.777877a65b3723219b001399130da8f5.png

И вроде сеть поднята 

ip addr show

image.thumb.png.032976f7767c226886c2159a00a67e7a.png

#!!!

Вслед всеобщему заблуждению статус поднятия показывает тут:  

    <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 

а нет тут: 

    <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 

#!!!

Создание сети так не прокатит:

docker network create some-net

будет вылетать ошибка вышеуказанная.

По сему пишите полные настройки:

docker network create --driver=bridge --subnet=172.19.0.0/16 --ip-range=172.19.1.0/24 --gateway=172.19.0.1 some-net

Глянуть опции можно тут.

image.thumb.png.194bb997e7f5c9a2eb2e08ed5a51f8da.png

Теперь скидываем контейнер:

docker-compose down

И поднимаем:

docker-compose up

image.png.abba24d005e1084bedcf5e59e157c661.png

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...