Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker inspect missing link local ipv6 #38705

Open
agowa opened this issue Feb 10, 2019 · 3 comments
Open

docker inspect missing link local ipv6 #38705

agowa opened this issue Feb 10, 2019 · 3 comments
Labels

Comments

@agowa
Copy link

agowa commented Feb 10, 2019

Description

docker inspect shows the following ipv6 settings:

        "NetworkSettings": {
            "Bridge": "",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "GlobalIPv6Address": "xxxx:xxxx:xxxx::6",
            "GlobalIPv6PrefixLen": 64,
            "IPv6Gateway": "xxxx:xxxx:xxxx::1",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "IPv6Gateway": "xxxx:xxxx:xxxx::1",
                    "GlobalIPv6Address": "xxxx:xxxx:xxxx::6",
                    "GlobalIPv6PrefixLen": 64

But an ip addr within the container shows:

225: eth0@if226: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
    inet6 xxxx:xxxx:xxxx::6/64 scope global flags 02 
       valid_lft forever preferred_lft forever
    inet6 fe80::42:acff:fe11:6/64 scope link 
       valid_lft forever preferred_lft forever

Steps to reproduce the issue:

  1. Enable docker IPv6 within the daemon.json
  2. docker run -dt alpine:latest
  3. docker inspect <<ID>>
  4. docker exec -it <<ID>> ip addr

Describe the results you received:

"LinkLocalIPv6Address" and "LinkLocalIPv6PrefixLen" are not correctly shown within docker inspect

Describe the results you expected:

Both correctly set to the link local ipv6 of the container.

Output of docker version:

Client:
 Version:           18.09.1-ce
 API version:       1.39
 Go version:        go1.11.4
 Git commit:        4c52b901c6
 Built:             Thu Jan 10 06:51:04 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.09.1-ce
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.11.4
  Git commit:       4c52b901c6
  Built:            Thu Jan 10 06:50:46 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Output of docker info:

Containers: 18
 Running: 15
 Paused: 0
 Stopped: 3
Images: 300
Server Version: 18.09.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9f2e07b1fc1342d1c48fe4d7bbb94cb6d1bf278b.m
runc version: 079817cc26ec5292ac375bb9f47f373d33574949
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.20.0-arch1-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 11.73GiB
ID: FG3Q:YYS2:3ZLA:FPA5:HCRF:HWLR:PZRR:7BM7:IXER:CVEQ:L6AQ:DAS5
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):
rented vServer

@agowa
Copy link
Author

agowa commented Feb 10, 2019

@GordonTheTurtle I think this is the wrong label, this is not a platform/arm, but x86_64, or does that tag mean something else?

@thaJeztah
Copy link
Member

@agowa338 is the information present inside NetworkSettings.Networks.bridge ? The top-level (NetworkSettings.LinkLocalIPv6Address) field was deprecated in API versions v1.20 and up, and is only propagated on older API versions.

@agowa
Copy link
Author

agowa commented Feb 12, 2019

No, it is not. The node NetworkSettings.Network.bridge has no attribute LinkLocalIPv6Address. It only shows the GUA.

"bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "(...)",
                    "EndpointID": "(...)",
                    "Gateway": "(...)",
                    "IPAddress": "(...)",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "xxxx:xxxx:xxxx::1",
                    "GlobalIPv6Address": "xxxx:xxxx:xxxx::6",
                    "GlobalIPv6PrefixLen": 64,
                    "MacAddress": "(...)",
                    "DriverOpts": null
                }

@thaJeztah thaJeztah added the area/networking/ipv6 Issues related to ipv6 label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants