Skip to content
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

Under docker swarm mode,network can not be "host"? #25276

Closed
JunJiangWang opened this issue Aug 1, 2016 · 3 comments
Closed

Under docker swarm mode,network can not be "host"? #25276

JunJiangWang opened this issue Aug 1, 2016 · 3 comments

Comments

@JunJiangWang
Copy link

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!

@JunJiangWang JunJiangWang changed the title docker swarm mode network can not be "host"? Under docker swarm mode,network can not be "host"? Aug 1, 2016
@discoverkl
Copy link

discoverkl commented Aug 25, 2016

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.

@vayasin
Copy link

vayasin commented Sep 1, 2016

Is this by design or not yet implemented?

+1 need this too.

@epicsoft-llc
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants