Skip to content

Instantly share code, notes, and snippets.

@TheLinuxGuy
Created January 27, 2021 01:27
Show Gist options
  • Save TheLinuxGuy/4b86585793337db32e5b4b0f44beaec2 to your computer and use it in GitHub Desktop.
Save TheLinuxGuy/4b86585793337db32e5b4b0f44beaec2 to your computer and use it in GitHub Desktop.
# docker container inspect portainermacvlan
[
"NetworkSettings": {
"Bridge": "",
"SandboxID": "48fd987a4ad8ecfbef8a2d44c067c07489ed70048ddeec2f1778e3f7cfa20377",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/48fd987a4ad8",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"vlan555": {
"IPAMConfig": {},
"Links": null,
"Aliases": [
"d137af32c25a"
],
"NetworkID": "7abe8452b6d0a59212cd8809ea9424cbb35beb9664fe0ec141fd4b9e8d24739d",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
in contrast the docker CLI container
# docker container inspect my-macvlan-centos
[
"NetworkSettings": {
"Bridge": "",
"SandboxID": "be3d78dd56ad5aa0206f572905327e583cc9d8951d5338b7009d84f92e3f580c",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/be3d78dd56ad",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"vlan555": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"2d70ecccd6dd"
],
"NetworkID": "7abe8452b6d0a59212cd8809ea9424cbb35beb9664fe0ec141fd4b9e8d24739d",
"EndpointID": "bcdb38c59c9c7579a3c15a4c86fed8025746645c9bea809154f6ddd93253ce15",
"Gateway": "172.22.0.1",
"IPAddress": "172.22.0.4",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:16:00:04",
"DriverOpts": null
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment