Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
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
- Download docker beta (at the time of the writing) version of docker for Windows (https://download.docker.com/win/beta/InstallDocker.msi)
- Install docker and switch to Windows containers by right clicking on task bar icon
- If everything was done properly then you shall see white whale icon in taskbar
Install Powershell tools for docker
- Open Powershell prompt with administrative credentials and execute
Register-PSRepository -Name DockerPS-Dev -SourceLocation https://ci.appveyor.com/nuget/docker-powershell-dev Install-Module Docker -Repository DockerPS-Dev
- To verify that both docker and powershell module for docker are installed properly execute following and check if you see network names
natin 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
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.
- Right click on docker image in taskbar and choose settings
- 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)