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

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

Open
shueybubbles opened this issue Jul 20, 2019 · 3 comments
Open

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

shueybubbles opened this issue Jul 20, 2019 · 3 comments

Comments

@shueybubbles
Copy link

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
Copy link

@shueybubbles did you fix it?

@shueybubbles
Copy link
Author

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

@danieltura
Copy link

Cool thanks

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

No branches or pull requests

2 participants