DEV Community

.Net Labs
.Net Labs

Posted on • Edited on

1 1

Execute Powershell using Docker container

Here instead of running PowerShell command into local machine we will run poweshell into docker container and will run PowerShell command inside it.
We can Pull PowerShell image and can run on local machine.
Inside host machine we can have multiple containers and can run at same time.
Like in below case , we have host machine and have 2 containers MY SQL and Poweshell.
In this document we will try to focus on the creation of PowerShell container as per screen below and will run command inside it.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay