mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Fix unmarshal issue (#3545)
If set to `"mtu": "1500"` will got an error: ``` unable to configure the Docker daemon with file /etc/docker/daemon.json: json: cannot unmarshal string into Go value of type int ``` That code can not unmarshal string into Go value of type int, I changed the type from string to int.
This commit is contained in:
committed by
Misty Stanley-Jones
parent
667306190c
commit
a22db0902b
@@ -36,7 +36,7 @@ following settings to configure the default bridge network:
|
||||
"bip": "192.168.1.5/24",
|
||||
"fixed-cidr": "10.20.0.0/16",
|
||||
"fixed-cidr-v6": "2001:db8::/64",
|
||||
"mtu": "1500",
|
||||
"mtu": 1500,
|
||||
"default-gateway": "10.20.1.1",
|
||||
"default-gateway-v6": "2001:db8:abcd::89",
|
||||
"dns": ["10.20.1.2","10.20.1.3"]
|
||||
|
||||
Reference in New Issue
Block a user