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

Cannot connect/use transparent network with container (LCOW) #3596

Open
2 tasks done
MythreyaK opened this issue Mar 20, 2019 · 5 comments
Open
2 tasks done

Cannot connect/use transparent network with container (LCOW) #3596

MythreyaK opened this issue Mar 20, 2019 · 5 comments

Comments

@MythreyaK
Copy link

MythreyaK commented Mar 20, 2019

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: B81956F0-D115-4F60-91A3-AB8D6A5C20C1/20190320181258

Expected behavior

The chosen transparent network successfully connects to the container (LCOW)

Actual behavior

Fails with errors

Error during connect, after container is running: Error response from daemon: unsupported platform request

During container creation using with the --network flag (click to expand)
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: container 262af03bcef37c0f49116ab2f75cf49ad221163332cab47df284ecbc99dedda8 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to link resolv.conf file for adapter 272bc5b4-a8ed-46a2-bfec-49368d97e314: link /etc/resolv.conf /tmp/base/etc/resolv.conf: invalid cross-device link Stack Trace:

github.com/Microsoft/opengcs/service/gcs/oslayer/realos.(*realOS).Link
        /go/src/github.com/Microsoft/opengcs/service/gcs/oslayer/realos/realos.go:232
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).configureAdapterInNamespace
        /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/networking.go:57
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:369
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:582
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).(github.com/Microsoft/opengcs/service/gcs/bridge.execProcess)-fm
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:236
github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:68
github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:139
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:315
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:2361 Provider: 00000000-0000-0000-0000-000000000000] extra info: 
        {
            "CommandArgs":[
                "/bin/bash"
            ],
            "WorkingDirectory":"/",
            "Environment":{
                "HOSTNAME":"262af03bcef3",
                "PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "TERM":"xterm"
            },
            "EmulateConsole":true,
            "CreateStdInPipe":true,
            "CreateStdOutPipe":true,
            "ConsoleSize":[
                24,
                100
            ],
            "OCISpecification":{
                "ociVersion":"1.0.1-dev",
                "process":{
                    "terminal":true,
                    "consoleSize":{
                        "height":24,
                        "width":100
                    },
                    "user":{
                        "uid":0,
                        "gid":0
                    },
                    "args":[
                        "/bin/bash"
                    ],
                    "env":[
                        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                        "HOSTNAME=262af03bcef3",
                        "TERM=xterm"
                    ],
                    "cwd":"/",
                    "capabilities":{
                        "bounding":   ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FSETID", "CAP_FOWNER", "CAP_MKNOD", "CAP_NET_RAW", "CAP_SETGID", "CAP_SETUID", "CAP_SETFCAP", "CAP_SETPCAP", "CAP_NET_BIND_SERVICE", "CAP_SYS_CHROOT", "CAP_KILL", "CAP_AUDIT_WRITE"],
                        "effective":  ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FSETID", "CAP_FOWNER", "CAP_MKNOD", "CAP_NET_RAW", "CAP_SETGID", "CAP_SETUID", "CAP_SETFCAP", "CAP_SETPCAP", "CAP_NET_BIND_SERVICE", "CAP_SYS_CHROOT", "CAP_KILL", "CAP_AUDIT_WRITE"],
                        "inheritable":["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FSETID", "CAP_FOWNER", "CAP_MKNOD", "CAP_NET_RAW", "CAP_SETGID", "CAP_SETUID", "CAP_SETFCAP", "CAP_SETPCAP", "CAP_NET_BIND_SERVICE", "CAP_SYS_CHROOT", "CAP_KILL", "CAP_AUDIT_WRITE"],
                        "permitted":  ["CAP_CHOWN", "CAP_DAC_OVERRIDE", "CAP_FSETID", "CAP_FOWNER", "CAP_MKNOD", "CAP_NET_RAW", "CAP_SETGID", "CAP_SETUID", "CAP_SETFCAP", "CAP_SETPCAP", "CAP_NET_BIND_SERVICE", "CAP_SYS_CHROOT", "CAP_KILL", "CAP_AUDIT_WRITE"]
                        
                    }
                },
                "root":{ "path":"rootfs" },
                "hostname":"262af03bcef3",
                "mounts":[
                    {
                        "destination":"/proc",
                        "type":"proc",
                        "source":"proc",
                        "options":[
                            "nosuid",
                            "noexec",
                            "nodev"
                        ]
                    },
                    {
                        "destination":"/dev",
                        "type":"tmpfs",
                        "source":"tmpfs",
                        "options":[
                            "nosuid",
                            "strictatime",
                            "mode=755",
                            "size=65536k"
                        ]
                    },
                    {
                        "destination":"/dev/pts",
                        "type":"devpts",
                        "source":"devpts",
                        "options":[
                            "nosuid",
                            "noexec",
                            "newinstance",
                            "ptmxmode=0666",
                            "mode=0620",
                            "gid=5"
                        ]
                    },
                    {
                        "destination":"/sys",
                        "type":"sysfs",
                        "source":"sysfs",
                        "options":[
                            "nosuid",
                            "noexec",
                            "nodev",
                            "ro"
                        ]
                    },
                    {
                        "destination":"/sys/fs/cgroup",
                        "type":"cgroup",
                        "source":"cgroup",
                        "options":[
                            "ro",
                            "nosuid",
                            "noexec",
                            "nodev"
                        ]
                    },
                    {
                        "destination":"/dev/mqueue",
                        "type":"mqueue",
                        "source":"mqueue",
                        "options":[
                            "nosuid",
                            "noexec",
                            "nodev"
                        ]
                    },
                    {
                        "destination":"/dev/shm",
                        "type":"tmpfs",
                        "source":"shm",
                        "options":[
                            "nosuid",
                            "noexec",
                            "nodev",
                            "mode=1777"
                        ]
                    }
                ],
                "linux":{
                    "resources":{

                    },
                    "namespaces":[
                        { "type":"mount" },
                        { "type":"network" },
                        { "type":"uts" },
                        { "type":"pid" },
                        { "type":"ipc "}
                    ],
                    "maskedPaths":[
                        "/proc/asound",
                        "/proc/acpi",
                        "/proc/kcore",
                        "/proc/keys",
                        "/proc/latency_stats",
                        "/proc/timer_list",
                        "/proc/timer_stats",
                        "/proc/sched_debug",
                        "/proc/scsi",
                        "/sys/firmware"
                    ],
                    "readonlyPaths":[
                        "/proc/bus",
                        "/proc/fs",
                        "/proc/irq",
                        "/proc/sys",
                        "/proc/sysrq-trigger"
                    ]
                },
                "windows":{
                    "layerFolders":[
                        "D:\\ProgramData\\Docker\\lcow\\d0a125d35da4b39a4b8e05b445b8c5d95a210a6c3d56b4864769d34d00327105",
                        "D:\\ProgramData\\Docker\\lcow\\1e9898570b948c36038a73c0cac070fe27e95563469924625151d0e85746d449",
                        "D:\\ProgramData\\Docker\\lcow\\b229bd051551b3ec59c53d2f82c816d0b29c76847f2603c20b5aff71163228bc",
                        "D:\\ProgramData\\Docker\\lcow\\dcb90d0f0d93ee355f00329e0fe9d82fdf4e7737282fa470ee78f4b6fa5b9bb2",
                        "D:\\ProgramData\\Docker\\lcow\\262af03bcef37c0f49116ab2f75cf49ad221163332cab47df284ecbc99dedda8"
                    ],
                    "hyperv":{

                    },
                    "network":{
                        "endpointList":[
                            "272BC5B4-A8ED-46A2-BFEC-49368D97E314"
                        ]
                    }
                }
            }
        }

Information

  • Windows Version: 10.0.17763.316 (1809)
  • Docker for Windows Version: 2.0.0.3 (31259)
  • Docker Engine Version: 18.09.2

Steps to reproduce the behavior

  1. Pull an ubuntu image using docker pull ubuntu --platform linux
  2. Try running the container with docker run --rm -it --net YourTransparentNetwork ubuntu
  3. OR, attach YourTransparentNetwork to the container with the docker network connect .. command
@MythreyaK
Copy link
Author

Any updates?

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@MythreyaK
Copy link
Author

/lifecycle frozen

@MythreyaK
Copy link
Author

/remove-lifecycle stale

@mastertIT
Copy link

mastertIT commented Nov 17, 2021

facing this same issue on server 2019 and docker EE

Server:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 1
Server Version: 20.10.8
Storage Driver: windowsfilter (windows) lcow (linux)
Windows:
LCOW:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
Operating System: Windows Server 2019 Datacenter Version 1809 (OS Build 17763.2300)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants