Skip to content

Powershell crashes microsoft/powershell docker container #670

@mikedbrook

Description

@mikedbrook

Running Docker Edge on MAC OSX 10.12.6
From within iterm2 pulled microsoft/powershell:latest container.
spin up the container ok and can docker exec into the container ok

run push in container to start powershell and receive the following output:

root@3d90889506e0:/# pwsh
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.

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

PS />
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 0 Keys:


Exception:
System.DivideByZeroException: Attempted to divide by zero.
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Steps to reproduce

docker pull microsoft/powershell
docker run --name=mypowershell -itd microsoft/powershell:latest
docker exec -it mypowershell /bin/bash

type pwsh at prompt

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions