microsoft / opengcs

Moved to https://github.com/microsoft/hcsshim/tree/master/internal/guest. If you wish to open PRs/submit issues please do so against https://github.com/microsoft/hcsshim.
MIT License
83 stars 41 forks source link

some "docker exec" commands fail with a cryptic error #327

Open shueybubbles opened 5 years ago

shueybubbles commented 5 years ago

C:\agent_work\2\s>docker version Client: Version: master-dockerproject-2019-07-11 API version: 1.40 Go version: go1.12.6 Git commit: 6fc0dc91 Built: Fri Jul 12 00:07:05 2019 OS/Arch: windows/amd64 Experimental: false

Server: Engine: Version: master-dockerproject-2019-07-11 API version: 1.41 (minimum version 1.24) Go version: go1.12.7 Git commit: 2fc3480 Built: Fri Jul 12 00:19:30 2019 OS/Arch: windows/amd64 Experimental: true

Microsoft Windows [Version 10.0.18362.175]

Running a SQL Server 2019 docker image on LCOW, trying to use sudo generally fails.

C:\agent\_work\2\s>docker exec 6658dd46feaa sudo systemctl status mssql-server
container 6658dd46feaa34796104a38f3da3b6c0acc935542f4441978f82cb624eaac174 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to run runc create/exec call for container 6658dd46feaa34796104a38f3da3b6c0acc935542f4441978f82cb624eaac174: exit status 1 Stack Trace:
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:578
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).runExecCommand
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:518
github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).ExecProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:136
github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:425
github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
        /go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:585
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":["sudo","systemctl","status","mssql-server"],"WorkingDirectory":"/tmp/backup","Environment":{"ACCEPT_EULA":"Y","HOSTNAME":"6658dd46feaa","MSSQL_PID":"Developer","MSSQL_SA_PASSWORD":"Yukon481","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","SA_PASSWORD":"Yukon481"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
danieltura commented 5 years ago

@shueybubbles did you fix it?

shueybubbles commented 5 years ago

No I've just given up on using Windows as my test agent and am now using Linux VMs.

danieltura commented 5 years ago

Cool thanks