PowerShell을 Container로 사용하기


참고: http://bit.ly/2SL3nis
참고2: PowerShell Core 문서: https://aka.ms/pscore6-docs

기존 리눅스에서 PowerShell core를 설치하여 사용하여도 되지만, 기존 시스템을 건드리지 않고 단지 테스트 및 공부를 할 때는 아래와 같이 Container를 가지고 Clean 상태에서 작업하는 것이 좋다. 그리고 이렇게 하면 최신 버전의 PowerShell Core 버전을 사용할 수 있다

docker pull mcr.microsoft.com/powershell
docker images
docker run –name pwsh -it mcr.microsoft.com/powershell
$psversiontable
powershellcore

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s