-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Docker daemon MTU not used when creating a new bridge network #34981
Copy link
Copy link
Closed
Labels
Description
Description
I configure the /etc/docker/daemon.json with the "mtu" parameter to 1450.
Default bridge is ok with mtu=1450.
But when a new bridge network is created (either docker network create or docker-compose), the mtu parameter is false. It's always 1500.
Steps to reproduce the issue:
- Add
"mtu": 1450to/etc/docker/daemon.json - Restart docker daemon
- Create a new bridge :
docker network create my-net
Describe the results you received:
my-net MTU = 1500
Describe the results you expected:
my-net MTU = 1450
Output of docker version:
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:00:17 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:11 2017
OS/Arch: linux/amd64
Experimental: false
Output of docker info:
Containers: 4
Running: 1
Paused: 0
Stopped: 3
Images: 41
Server Version: 17.06.2-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/100000.100000/aufs
Backing Filesystem: extfs
Dirs: 163
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
userns
Kernel Version: 4.4.0-93-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 15.67GiB
Name: test-vm-04
ID: OZSP:AWLJ:HAPO:CZD6:NNLX:YDIT:LGWR:RMEI:P4SK:SBY4:2RAT:5YIK
Docker Root Dir: /var/lib/docker/100000.100000
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
Reactions are currently unavailable