OS Version/build: Ubuntu 22.04.5 LTS (5.15.0-130-generic)
App version: Docker version 27.4.1, build b9d17ea
Happy New Year all
I’m following this guide
But alas, I don’t get a default route?
# docker exec my-macvlan-alpine ip route
192.168.1.0/24 dev eth0 scope link src 192.168.1.33
Everything seems to have worked with the network creation, I can see the gateway in there, alas it doesn’t seem to have been passed to the container? (This all works fine for the normal bridge driver)
# docker network inspect my-macvlan-net
[
{
"Name": "my-macvlan-net",
"Id": "0273b8b456e695146fca69e76c938f9df8022d7fc7b4a9c7761c9ae6a54f3527",
"Created": "2025-01-01T11:57:28.173284086Z",
"Scope": "local",
"Driver": "macvlan",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "192.168.1.0/24",
"IPRange": "192.168.1.32/27",
"Gateway": "192.168.1.1",
"AuxiliaryAddresses": {
"local": "192.168.1.32"
}
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"7b1603eaacb48b06b176427f69eac686909471ac17421b2be04441263c0defbb": {
"Name": "my-macvlan-alpine",
"EndpointID": "25b8a68aa969430c5eed98d34be00fecece09a9843dd1cd7a091dc2d889f2fef",
"MacAddress": "02:42:c0:a8:01:21",
"IPv4Address": "192.168.1.33/24",
"IPv6Address": ""
}
},
"Options": {
"enp5s0": ""
},
"Labels": {}
}
]
What have I done wrong???
Cheers