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

microsoft/powershell container fails to launch with default settings #7803

Closed
LawrenceHwang opened this issue Sep 17, 2018 · 2 comments
Closed
Labels
Area-Maintainers-Build specific to affecting the build Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).

Comments

@LawrenceHwang
Copy link

Steps to reproduce

Pull the latest microsoft/powershell image.
Launch and run a container instance.

yyyyyy\C:\temp
PS:_> docker pull microsoft/powershell
Using default tag: latest
latest: Pulling from microsoft/powershell
Digest: sha256:07c8b527ed5eaed52a67359e093984503dab00f56a7d165cc8b95d0c5df0bc65
Status: Image is up to date for microsoft/powershell:latest
yyyyyy\C:\temp
PS:_> docker images microsoft/powershell
REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
microsoft/powershell   latest              91e5725258dc        3 days ago          337MB
yyyyyy\C:\temp
PS:_> docker run -it microsoft/powershell
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"pwsh-preview\": executable file not found in $PATH": unknown.
yyyyyy\C:\temp

Works when specifying the pwsh

PS:_> docker run -it microsoft/powershell pwsh
PowerShell 6.1.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

PS />

Expected behavior

Being able to launch the container.

PS:_> docker run -it microsoft/powershell
PowerShell 6.1.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

PS />

Actual behavior

Container failed to launch. It's still pointing to the preview

yunhwa\C:\temp
PS:_> docker run -it microsoft/powershell
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"pwsh-preview\": executable file not found in $PATH": unknown.

Environment data

PS /> $psversiontable

Name                           Value
----                           -----
PSVersion                      6.1.0
PSEdition                      Core
GitCommitId                    6.1.0
OS                             Linux 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@LawrenceHwang
Copy link
Author

I checked the mcr.microsoft.com/powershell container image and that one works.

@iSazonov iSazonov added Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Area-Maintainers-Build specific to affecting the build labels Sep 18, 2018
@iSazonov
Copy link
Collaborator

Please move the issue to PowerShell-Docker repository if it is still actual.

@iSazonov iSazonov added the Resolution-External The issue is caused by external component(s). label Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Maintainers-Build specific to affecting the build Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).
Projects
None yet
Development

No branches or pull requests

2 participants