Skip to content
GSA edited this page Mar 14, 2017 · 17 revisions

Windows containers Walthrough

Series of postings below will allow you to start working with Windows containers with series of simple to follow steps. This walktrhough will include all aspects of using Windows containers including production rollout based on Service Fabric application from Microsoft.

Setting up development environment

To work/debug Windows containers you have 2 choices currently as far as OS choice is concerned. You can run it on Windows 10 or Windows 2016. Steps taken to setup development environment below were performed on Windows 10 (10.0.14393). To prepare development environment

Install docker

  1. Download docker beta (at the time of the writing) version of docker for Windows (
  2. Install docker and switch to Windows containers by right clicking on task bar icon

  1. If everything was done properly then you shall see white whale icon in taskbar

Install Powershell tools for docker

  1. Open Powershell prompt with administrative credentials and execute
Register-PSRepository -Name DockerPS-Dev -SourceLocation
Install-Module Docker -Repository DockerPS-Dev
  1. To verify that both docker and powershell module for docker are installed properly execute following and check if you see network names nat in output. This will be default network your new containers will be deployed to.
PS C:\Users\Administrator> get-containernet

Id              Name            Driver
--              ----            ------
2c5a8847d03d... nat             nat
3cc8bbc684ad... none            null

Some housekeeping

Default docker installation will put all your downloaded container images as well the ones which you will create put on default drive (C:), this can get pretty difficult to move once established, so if you are short on space on C drive and would like to move location of images on different drive then follow instructions below.

  1. Right click on docker image in taskbar and choose settings
  2. Switch to daemon tab and click "Advanced". Put location of the drive/folder where you want your images to be stored at

[Next Section](download images)

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.