I’m trying to set the MTU of all interfaces on my containers, running Docker in swarm mode. I’ve tried to set $DOCKER_OPTS
in /etc/default/docker
to include --mtu=1350
, but this doesn’t do anything. We’re using docker stack deploy -c docker-compose.yml
to start the service, and it’s replicated across the swarm a few times.
Is there a way in swarm mode to set the MTU of eth0 and eth1 for every container on startup?
Ubuntu 14.04.5 LTS
Docker version 17.09.0-ce, build afdb6d4