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
• 16,300 points
355 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
• 42,330 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
3,185 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 in Docker by Sirajul
• 37,480 points
249 views
0 votes
1 answer
0 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
• 56,920 points
224 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 in Docker by Kishore
1,663 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
• 42,330 points
44 views