Managing Docker networks using Windows PowerShell for Docker
We have so far used docker commands to manage Windows Containers networking stack. Windows also offer PowerShell commands to manage the stack. However the PowerShell package is still in development and available as open source. Docker PowerShell uses the Docker REST API to connect to Docker service. The decision whether to use docker or REST API is purely a matter of choice. Use the following process to install the PowerShell management stack for creating and managing windows containers:
- Open PowerShell windows as administrator.
- Run the following command to install the development build of Docker PowerShell:
Register-PSRepository -Name DockerPS-Dev -SourceLocation https://ci.appveyor.com/nuget/docker-powershell-dev Install-Module Docker -Repository DockerPS-Dev -Scope CurrentUser
- Run the following command to get the list of containers running using the PowerShell command:
Get-Container
- If you want to update...