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

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

@shueybubbles

Description

@shueybubbles

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]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions