Moby: Under docker swarm mode,network can not be "host"?

Created on 1 Aug 2016  ·  3Comments  ·  Source: moby/moby

Hi,I just have a question.When I use docker swarm(version 1.12),I found that I can not create a service with '--network host'.
The command is "docker service create --name test --network host redis redis-server" ,and the error is "Error response from daemon: network host is not eligible for docker services".
Any comments are greatly appreciated!

arenetworking kinquestion

Most helpful comment

I have the same problem too.

# docker service create --name demo --network host alpine /bin/sh    
Error response from daemon: network host is not eligible for docker services

We REALLY need '--net host' in Docker Swarm, because iptables's NAT module is missing in out company, for security reasons. So all the fancy overlay network is not working for us.

All 3 comments

I have the same problem too.

# docker service create --name demo --network host alpine /bin/sh    
Error response from daemon: network host is not eligible for docker services

We REALLY need '--net host' in Docker Swarm, because iptables's NAT module is missing in out company, for security reasons. So all the fancy overlay network is not working for us.

Is this by design or not yet implemented?

+1 need this too.

+1

Was this page helpful?
0 / 5 - 0 ratings