Changes for page Install Docker for Windows
Last modified by Erik Bakker on 2026/01/23 13:45
From version 142.1
edited by Erik Bakker
on 2026/01/23 12:50
on 2026/01/23 12:50
Change comment:
There is no comment for this version
To version 129.1
edited by CarlijnKokkeler
on 2024/09/03 09:51
on 2024/09/03 09:51
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ebakker1 +XWiki.CarlijnKokkeler - Content
-
... ... @@ -1,5 +1,5 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 -In eMagiz'scurrent runtime architecture, Dockertechnologyisutilized to deployruntimes efficiently. eMagiz provides specific runtime imagesthat canbe deployedwithindockerized environments. Thissection outlinesthestepsneededtopreparea Windowsserverforthe installationof theeMagiz DeployAgent,which is responsible for downloadingtheseimages from the eMagiz infrastructure.2 +In this microlearning, we will focus on how an on-premises server can be prepared for a eMagiz Deploy agent installation. 3 3 4 4 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 5 5 ... ... @@ -9,7 +9,7 @@ 9 9 * Good understanding of eMagiz runtimes in general 10 10 11 11 == 2. Key concepts == 12 -In the currentruntime architecture of eMagiz, Docker technology is used to deploy runtimes. eMagiz creates specific runtime images that contain the eMagiz runtime, and can be deployed in dockerized environments.12 +In the new runtime architecture of eMagiz, Docker technology is used to deploy runtimes. eMagiz creates specific runtime images that contain the eMagiz runtime, and can be deployed in dockerized environments. 13 13 14 14 In the below section the Windows variant is described in terms of how to prepare the server to allow the [[eMagiz Deploy Agent>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.eMagiz Runtime Management.intermediate-runtime-management-deploy-agent.WebHome||target="blank"]] to be installed. That agent allows to download images from the eMagiz infrastructure. 15 15 ... ... @@ -17,22 +17,22 @@ 17 17 18 18 ===3.1 General requirements=== 19 19 20 -{{info}}It is advised to use Docker version 24.0.7 as this is the version being used in the latest eMagiz cloud template. We advise aligning the on-premise Docker version and updating it according to the release notes of the [[Cloud templates>>doc:Main.Release Information.Cloud Templates.WebHome||target="blank"]]. 21 -{{/info}} 22 - 23 23 {{info}} 24 24 * Standard configuration to ensure that communication between your server and eMagiz to ensure communication. 25 25 ** registry.emagiz.com:443 26 - ** controlplane.emagiz.com:443 27 - ** controlplane-agent.emagiz.com:443 28 - ** controltower.emagiz.com:443 23 + ** controlplane.emagiz.com:8000 29 29 ** controltower.kpn-dsh.com:443 30 - ** controlbus.emagiz.com:443 31 31 ** Preferably the entry should be *.emagiz.com 32 32 ** Preferably the entry should be *.kpn-dsh.com{{/info}} 33 33 34 34 {{warning}} 35 -* When using **IP Whitelisting**, the following configuration is needed to communicate to your JMS. 29 +* In case of a very strict firewall configuration, additional configuration is needed to communicate to the eMagiz infrastructure. 30 + ** controltower.emagiz.com:443 31 + ** controltower.kpn-dsh.com:443 32 + ** controlbus.emagiz.com:443 33 + ** controlplane.emagiz.com:443 34 + 35 +* When using cloudslot number **equal to or below** 125, the following configuration is needed to communicate to your JMS. 36 36 ** 35.158.46.28:443 37 37 ** 3.74.190.88:443 38 38 ** 35.158.46.28:8443 ... ... @@ -39,23 +39,21 @@ 39 39 ** 3.74.190.88:8443 40 40 ** 35.158.46.28:8444 41 41 ** 3.74.190.88:8444 42 + 43 +* When using a cloudslot number **above** 125, the following configuration is needed to communicate to your JMS. 42 42 ** 3.74.209.20:443 43 43 ** 3.76.127.155:443 44 44 ** 3.74.209.20:8443 45 45 ** 3.76.127.155:8443 46 46 ** 3.74.209.20:8444 47 - ** 3.76.127.155:8444 48 - ** 18.199.123.240 49 - ** 18.184.211.189 50 - ** 3.123.136.31{{/warning}} 49 + ** 3.76.127.155:8444{{/warning}} 51 51 52 - 53 - 54 54 ===3.2 Installation Windows=== 55 -When Windows is selected as theoperating system, you need Windows Server 2022. Older Windows servers are **not** supported.52 +Whenever Windows is selected as operating system, you need to have a Windows Server 2022 version. Older Windows servers are **not** supported. 56 56 54 + 57 57 ==== 3.2.1 Docker Installation ==== 58 -To install Docker on your machine, execute the following commands inPowerShell with administrative rights:56 +To install or update docker on your machine, execute the following commands in powershell with administrative rights: 59 59 60 60 {{code language="cmd"}} 61 61 Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/emagiz/windows-support/main/Install-update-docker/install-update-docker.ps1" -o install-update-docker-ce.ps1 ... ... @@ -62,38 +62,28 @@ 62 62 .\install-update-docker-ce.ps1 -DockerVersion DESIRED_VERSION 63 63 {{/code}} 64 64 65 -==== 3.2.2 Customization ==== 63 +{{info}}It is advised to use Docker version 24.0.7 as this is the version being used in the latest eMagiz cloud template. We advise to align the on-premise Docker version and update it according to the release notes of the [[Cloud templates>>doc:Main.Release Information.Cloud Templates.WebHome||target="blank"]]. 64 +{{/info}} 66 66 67 -After installing Docker, you can stick with the standard configuration or adjust specific settings. Settings that can be of particular interest include the one that defines the IP address range your Docker installation will use to run containers, and the one that defines where to store data (i.e., containers and images). To check the full list of compatible configuration options for Windows, you can check: [[Configure Docker in Windows>>https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon||target="blank"]]. 66 +{{info}} 67 +By default the docker daemon configuration file is located in the docker data path at {{code language="cmd"}}C:\ProgramData\docker\config\daemon.json{{/code}}. 68 +To check the configuration options and compatible options with Windows you can check: [[Configure Docker in Windows>>https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon||target="blank"]]. 68 68 69 -{{warning}}Be aware that the customization will only take effect once you have restarted the machine.{{/warning}} 70 +**Example usage of the Docker daemon file**: You maybe want the Docker daemon to keep images and containers in an alternate path (D: 71 +drive for example). To do so you can add the following attribute to the Docker daemon file: 70 70 71 -===== 3.2.2.1 IP address range ===== 72 - 73 -Below is the code needed to configure a different IP address range. 74 - 75 75 {{code language="cmd"}} 76 -cd C:\ProgramData\Docker\config\daemon.json 77 -#Add the following lines 78 -{"fixed-cidr": "<ip-address>"} 79 -{{/code}} 80 - 81 -===== 3.2.2.2 Data location ===== 82 - 83 -Below is an example of switching from the default C directory ({{code language="cmd"}}c:\programdata\docker{{/code}}) to the D directory to store Docker data. Based on your internal configuration, you can choose the best suitable variant if needed. To do so, you can add the following attribute to the Docker daemon file: 84 - 85 -{{code language="cmd"}} 86 -cd C:\ProgramData\Docker\config\daemon.json 87 -#Add the following lines 88 88 { 89 89 "data-root": "d:\\docker" 90 90 } 91 91 {{/code}} 92 92 93 - {{warning}}Notethat whenyou wantto create multiplecustomizations to your configuration, theresult inthedaemon.json file shouldbea**valid** JSON structure{{/warning}}79 +If not specified, the default is {{code language="cmd"}}c:\programdata\docker{{/code}}. 94 94 95 - ==== 3.2.3 Checkinstallation ====81 +{{/info}} 96 96 83 +==== 3.2.2 Check installation ==== 84 + 97 97 After executing the commands above, the server will restart if required. After the restart, execute the following command 98 98 99 99 {{code language="cmd"}} ... ... @@ -100,13 +100,13 @@ 100 100 docker ps 101 101 {{/code}} 102 102 103 -If the command returns "command not found,"please run the following command again.91 +If the command returns that the command cannot be found, please run the following command again. 104 104 105 105 {{code language="cmd"}} 106 106 .\install-update-docker-ce.ps1 -DockerVersion DESIRED_VERSION 107 107 {{/code}} 108 108 109 -==== 3.2.3 Verify Docker functionality ====97 +==== 3.2.3 Verify docker functionality ==== 110 110 111 111 Execute the following command 112 112 ... ... @@ -120,25 +120,12 @@ 120 120 121 121 ==== 3.2.4 Install eMagiz Deploy Agent ==== 122 122 123 -Install the eMagiz Deploy agent as described in this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.eMagiz Runtime Management.intermediate-runtime-management-deploy-agent.WebHome||target="blank"]]111 +Install the eMagiz Deploy agent as can be found in this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.eMagiz Runtime Management.intermediate-runtime-management-deploy-agent.WebHome||target="blank"]] 124 124 125 -=== =3.3 UpdateDocker====126 - When youare advisedto updateyour Dockerversion,youcan verifywhether youare on thecorrect Docker versionbyexecutingthe following command inPowerShell with administrative rights:113 +===3.3 Uninstall Docker=== 114 +To uninstall docker from your machine, execute the following commands in powershell with administrative rights: 127 127 128 128 {{code language="cmd"}} 129 -docker version 130 -{{/code}} 131 - 132 -When this returns a version **lower** than the advised version shown below, you can update Docker on your machine. To do so, execute the following command in PowerShell with administrative rights: 133 - 134 -{{code language="cmd"}} 135 -.\install-update-docker-ce.ps1 -DockerVersion DESIRED_VERSION 136 -{{/code}} 137 - 138 -===3.4 Uninstall Docker=== 139 -To uninstall Docker from your machine, execute the following commands in PowerShell with administrative rights: 140 - 141 -{{code language="cmd"}} 142 142 Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/emagiz/windows-support/main/Uninstall-docker/uninstall-docker.ps1" -o uninstall-docker-ce.ps1 143 143 {{/code}} 144 144 ... ... @@ -150,14 +150,14 @@ 150 150 151 151 == 4. Key takeaways == 152 152 153 -* eMagiz uses runtime images to deploy theeMagiz runtime onDockerized environments. The runtime image holds all the information and components required to run the runtime128 +* eMagiz uses runtime images to deploy emagiz runtime on dockerized environments. The runtime image holds all the information and components required to run the runtime 154 154 * eMagiz has a specific agent that manages the download of that image to the on-premises server 155 -* The firewall of the on-premises environment should allow outgoing traffic without any restriction s. Ifthat is not desirable, eMagiz can provide the addresses and ports needed to setup theappropriatefirewall rules.130 +* The firewall of the on-premises environment should allow outgoing traffic without any restriction. In case that is not desirable, eMagiz can provide the addresses and ports needed to setup the right firewall rules. 156 156 157 157 == 5. Suggested Additional Readings == 158 158 159 -* [[Fundamentals (Navigation)>>doc:Main.eMagiz Academy.Fundamentals.WebHome||target="blank"]] 160 -** [[eMagiz Runtime Generation 3 (Explanation)>>doc:Main.eMagiz Academy.Fundamentals.fundamental-runtime-generation3||target="blank"]] 134 +** [[Fundamentals (Navigation)>>doc:Main.eMagiz Academy.Fundamentals.WebHome||target="blank"]] 135 +*** [[eMagiz Runtime Generation 3 (Explanation)>>doc:Main.eMagiz Academy.Fundamentals.fundamental-runtime-generation3||target="blank"]] 161 161 * [[Release Information (Menu)>>doc:Main.Release Information.WebHome||target="blank"]] 162 162 ** [[Environment Templates (Navigation)>>doc:Main.Release Information.Cloud Templates.WebHome||target="blank"]] 163 163 * [[Intermediate (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.WebHome||target="blank"]] ... ... @@ -170,7 +170,6 @@ 170 170 * [[Expert (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.WebHome||target="blank"]] 171 171 ** [[Solution Architecture (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Solution Architecture.WebHome||target="blank"]] 172 172 *** [[Install Docker for Linux (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Expert Level.Solution Architecture.expert-solution-architecture-onpremises-server-linux-installguide.WebHome||target="blank"]] 173 -* [[Install Docker (Search Result)>>url:https://docs.emagiz.com/bin/view/Main/Search?sort=score&sortOrder=desc&highlight=true&facet=true&r=1&f_space_facet=0%2FMain.&f_type=DOCUMENT&f_locale=en&f_locale=&f_locale=en&text=install+docker||target="blank"]] 174 174 * Docker command line cheatsheet: [[image:Main.Images.Microlearning.WebHome@docker-cheatsheet.png]] 175 175 176 176 )))((({{toc/}}))){{/container}}{{/container}}