I need to try out some stuff with Powershell on Linux. I have created a docker container with the following command:
docker run -it --name pwsh mcr.microsoft.com/powershell:lts-centos-8
This works as expected and i have an interactive shell i can work with. But i want to reuse it after i have stopped the container.
I have tried the following:
docker start -ia pswh
But this just starts the container and immediately stops it. Any Ideas how i can again enter an interactive session?
虽然我没有针对我自己的问题的解决方案,但我已经制定了解决方法并使用了包含 powershell 的 .NET SDK 容器映像。
您可以通过在交互模式下执行以下命令来启动容器:
docker -it pswh /bin/bash
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.