Dockerfile for PowerShell in a Linux container
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Dockerfile
README.md

README.md

docker-ps

Dockerfile for PowerShell in a Linux container

First, get the package:

wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.10/powershell_6.0.0-alpha.10-1ubuntu1.16.04.1_amd64.deb

or:

curl -OL https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.10/powershell_6.0.0-alpha.10-1ubuntu1.16.04.1_amd64.deb

Then, get the Dockerfile file and build the Docker image. For instance with a "psdemo" tag:

docker build -t psdemo .

Test the image with a container:

docker run --rm -it psdemo

...et voilà!

Check for new builds here: https://github.com/PowerShell/PowerShell/releases