New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static IP for container with driver overlay #31345
Comments
I'm facing the same issue, any workaround? network inspect:
compose file:
docker inspect:
docker info:
|
Thanks for reporting; Static IP addresses for services are not yet supported, see #25303 (and #24170, #29816). I'll close this issue, because we're tracking this feature through those issues, and don't want the discussion to diverge. Implementing this for Closing this issue, but feel free to comment after I closed 👍 |
I searched around and tried different possibilities and I was able to assign static ips to containers. I am pretty new to docker, I don't know if this is the right way though. I created a swarm. In manager, I created an attachable overlay network with a subnet.
My docker compose:
Note the configuration under default |
Description
Steps to reproduce the issue:
docker network create --driver overlay --subnet 10.40.1.0/24 --gateway 10.40.1.1 mynetwork
docker stack deploy --compose-file=test.yml ng
Describe the results you received:
Describe the results you expected:
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: