embrasure/powershell

By embrasure

Updated over 8 years ago

A utility container for running PowerShell.

Image

283

Supported tags and respective Dockerfile links

CircleCIlicense

About powershell

A utility Docker container for running PowerShell.

Powershell

PowerShell is a cross-platform (Windows, Linux and OS X) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models. It includes a command-line shell, an associated scripting language and a framework for processing cmdlets.

Install

$ docker pull embrasure/powershell

For ease of use, it is recommended that you configure an alias for the one or more of the following commands:

$ alias powershell='docker run -it --rm embrasure/powershell '

$ alias pws='docker run -it --rm -v $(pwd):/scratch embrasure/powershell '

If you wish for this alias to persist on reboot, you can append this line to your ~/.bashrc (or similiar file):

$ alias powershell >> ~/.bashrc

$ alias pws >> ~/.bashrc

Usage

dir command

$ docker run -it --rm -v $(pwd):/scratch embrasure/powershell dir /scratch

Docker Pull Command

docker pull embrasure/powershell