Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Container missing network device #953

Open
bryteise opened this issue Jun 6, 2017 · 4 comments
Open

Container missing network device #953

bryteise opened this issue Jun 6, 2017 · 4 comments
Labels

Comments

@bryteise
Copy link

bryteise commented Jun 6, 2017

Using Clear Linux 15710 (with Docker 17.05.0-ce) docker run -it busybox I do not get a network interface in the container:

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever

2: sit0@NONE: <NOARP> mtu 1480 qdisc noop qlen 1
    link/sit 0.0.0.0 brd 0.0.0.0
@bryteise
Copy link
Author

bryteise commented Jun 6, 2017

Output of docker inspect:

    {
        "Id": "0fcefe65f908ec4947f450c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c",
        "Created": "2017-06-06T18:12:34.684166764Z",
        "Path": "sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 9356,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2017-06-06T18:12:34.944932157Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:00f017a8c2a6e1fe2ffd05c281f27d069d2a99323a8cd514dd35f228ba26d2ff",
        "ResolvConfPath": "/var/lib/docker/containers/0fcefe65f908ec4947f450c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/0fcefe65f908ec4947f450c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c/hostname",
        "HostsPath": "/var/lib/docker/containers/0fcefe65f908ec4947f450c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c/hosts",
        "LogPath": "/var/lib/docker/containers/0fcefe65f908ec4947f450c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c/0fcefe65f908ec4947f45
0c1035b7e6b3780e73fdf7a2b7bc935fc80d5929a5c-json.log",
        "Name": "/friendly_franklin",
        "RestartCount": 0,
        "Driver": "overlay",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "cor",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": -1,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay/08598e55a042b785756da01c84e4abd29c85fc73ddc269ff2da554e4bc094d01/root",
                "MergedDir": "/var/lib/docker/overlay/f5abe51c95ed8932cbb3839d250f95afe750c1d22b7b6273f96b0a94a02374f1/merged",
                "UpperDir": "/var/lib/docker/overlay/f5abe51c95ed8932cbb3839d250f95afe750c1d22b7b6273f96b0a94a02374f1/upper",
                "WorkDir": "/var/lib/docker/overlay/f5abe51c95ed8932cbb3839d250f95afe750c1d22b7b6273f96b0a94a02374f1/work"
            },
            "Name": "overlay"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "0fcefe65f908",
            "Domainname": "",
            "User": "",
            "AttachStdin": true,
            "AttachStdout": true,
            "AttachStderr": true,
            "Tty": true,
            "OpenStdin": true,
            "StdinOnce": true,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "sh"
            ],
            "Image": "busybox",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "a07478ac29bd9c81be8a13ebbe1ae48c21216b29f7f0ec50cf2189821c98b212",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/a07478ac29bd",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "3dff9dc2cbd7c36d42570550dd825814dd860d7cd79917e5aa9803616c5284cb",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "48c6f9847b0b5001d71282a8c34322eabd7c42df848793c1cf05a21edf2e34dc",
                    "EndpointID": "3dff9dc2cbd7c36d42570550dd825814dd860d7cd79917e5aa9803616c5284cb",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02"
                }
            }
        }
    }
]

@amshinde
Copy link
Contributor

amshinde commented Jun 6, 2017

Just tried this on 15730, didnt see the issue. @bryteise Can you paste the output of docker inspect?

@amshinde
Copy link
Contributor

amshinde commented Jun 6, 2017

Just checked this with @bryteise. The network namespace listed in the docker inspect output was not created. Updating to 15730 fixed the issue.

@jodh-intel
Copy link
Contributor

I'm not clear how this "magically fixed" itself between the two releases - could someone provide some details?

@egernst egernst added the CC 2.1 label Jul 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants