Home > DevOps > Installing Docker EE on Windows Server 2016 Datacenter

Installing Docker EE on Windows Server 2016 Datacenter

Take advantage of Docker EE on Windows Server 2016.

#install docker ee
Install-Module DockerMsftProvider -Force
Install-Package Docker -ProviderName DockerMsftProvider -Force

#Restart server
Restart-Computer

So the C drive doesn’t get filled up with docker images, I’m going to move them to the D drive.

#For Image Storage
New-Item -Path D:\ -Name Containers -ItemType Directory -Force

Now we have to create a file for the configuration changes

#create docker daemon config file
New-Item -Path C:\ProgramData\docker\config -Name "daemon.json" -ItemType File

Add the path to the new docker image storage location.
[json]
{
“data-root”: “D:\\Containers”
}
[/json]

Restart the docker service

Restart-Server Docker

verify everything went ok

docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 17.06.2-ee-10
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.447.amd64fre.rs1_release_inmarket.161102-0100)
Operating System: Windows Server 2016 Datacenter
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 12GiB
Name: DOCKERHOSTTEST
ID: O5F2:CJNW:NUFE:I6KI:BGQS:O2AV:FSMB:KMGC:4PE7:IAGR:HIMI:3BXE
Docker Root Dir: D:\Containers
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Pages for Reference:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon
https://docs.docker.com/engine/reference/commandline/dockerd/#/windows-configuration-file
https://github.com/docker/for-win/issues/185
https://docs.docker.com/install/windows/docker-ee/

Exciting new things for Docker with Windows Server 1709