docker set iptables options in docker-compose.yml

0 votes
I'm using docker-compose for managing containers.

How to I turn off iptables (set --iptables=false for docker) when starting via docker-compose up?
Aug 2, 2018 in Docker by Hannah
• 18,410 points
863 views

1 answer to this question.

0 votes
The --iptables option only applies to the Docker daemon; it's not a per-container option. You would need to modify the options passed to the Docker daemon; on Red Hat systems and derivatives this means you would modify /etc/sysconfig/docker and updte the OPTIONS= line (and restart Docker).
answered Aug 2, 2018 by Kalgi
• 51,950 points

Related Questions In Docker

+1 vote
5 answers

Set containers timezones by using docker compose.

version "2" services: serviceA: ...READ MORE

answered Jul 8, 2018 in Docker by Atul
• 10,240 points
8,757 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Declaring default environment variables in docker-compose.

Compose supports declaring default environment variables in ...READ MORE

answered Jul 3, 2019 in Docker by Sirajul
• 57,750 points
1,056 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,640 points
757 views
+1 vote
4 answers

Docker compose, running containers in net:host

Hey@Hannah, Check the compose file format specifications ...READ MORE

answered May 7, 2019 in Docker by Kishore
2,739 views
0 votes
1 answer

Can you use docker-compose files to start services in Docker 1.12 swarm-mode?

Yess, you can. you must download/install the ...READ MORE

answered Aug 10, 2018 in Docker by Kalgi
• 51,950 points
85 views