If you havn’t been living under a rock recently you’ve no doubt heard a buzz around Containers. Don’t get me wrong, its not exactly new technology, Docker have been doing it since 2013 but with Microsoft having recently incorporated this technology into Windows Server 2016 and even added capability to Windows 10 this tech will certainly be adopted more.
If you’re like me you’re probably looking for something to help you get started… look no further.
Microsoft recently published this guide. One thing thats not mentioned is the updates needed, you must have Windows update KB KB3194496 installed otherwise things won’t work – Run Windows update. You’ll also need a processor with Intel VT-x (this feature is currently only available for Intel processors).
So with that in mind, all systems go! Fire up Powershell as Administrator.
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Reboot the machine and then set about getting docker installed.
Invoke-WebRequest "https://master.dockerproject.org/windows/amd64/docker-1.13.0-dev.zip" -OutFile "$env:TEMP\docker-1.13.0-dev.zip" -UseBasicParsing
Expand the archive folder into ProgramFiles directory
Expand-Archive -Path "$env:TEMP\docker-1.13.0-dev.zip" -DestinationPath $env:ProgramFiles
Add Docker to the Path to allow commands to be resolved. Run both these commands.
# For quick use, does not require shell to be restarted. $env:path += ";c:\program files\docker" # For persistent use, will apply even after a reboot. [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine)
Then setup to start as a service. You’ll want to configure docker as a service using:
Then start the service with:
Right thats it… docker installed and ready to run my crane driving buddy! Check out this post (coming soon) for using Containers.