Install Docker Desktop on Windows Server 2019/2022

Install Docker Desktop di Windows Server 2019/2022

Artikel sebelumnya: Install Docker and Docker Compose on Windows Server 2019/2022


Pre-Requirements

  • Install Hyper-V feature lewat Power Shell
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
  • Install Container feature lewat Power Shell
Install-WindowsFeature containers -Restart

Install Docker Desktop

  • Tampilan docker desktop
  • Verifikasi docker lewat PowerShell
  • cek versi docker , cek list network , cek versi docker-compose
docker version
docker network ls
docker-compose version
  • Download image windows container
  • jika saat download image muncul keterangan: Access is denied > Turn off Windows Security > Ransomeware Protection > Controller folder access > Off
---windows server 2019 - nano server
docker image pull mcr.microsoft.com/windows/nanoserver:1809

---windows server 2022 - nano server
docker image pull mcr.microsoft.com/windows/nanoserver:ltsc2022

---windows server 2019 with powershell
docker image pull mcr.microsoft.com/powershell:lts-nanoserver-1809

---windows server 2022 with powershell
docker image pull mcr.microsoft.com/powershell:lts-nanoserver-ltsc2022

---windows server 2019 - server core
docker image pull mcr.microsoft.com/windows/servercore:ltsc2019

---windows server 2022 - server core
docker image pull mcr.microsoft.com/windows/servercore:ltsc2022
  • Switch docker engine windows-linux
  • Docker dengan engine windows
PS C:\Users\Administrator> docker version
Client:
 Cloud integration: v1.0.24
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:53:11 2022
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.8.2 (79419)
 Engine:
  Version:          20.10.14
  API version:      1.41 (minimum version 1.24)
  Go version:       go1.16.15
  Git commit:       87a90dc
  Built:            Thu Mar 24 01:48:25 2022
  OS/Arch:          windows/amd64
  Experimental:     false
  • Docker dengan engine linux
PS C:\Users\Administrator> docker version
Client:
 Cloud integration: v1.0.24
 Version:           20.10.14
 API version:       1.41
 Go version:        go1.16.15
 Git commit:        a224086
 Built:             Thu Mar 24 01:53:11 2022
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.8.2 (79419)
 Engine:
  Version:          20.10.14
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.15
  Git commit:       87a90dc
  Built:            Thu Mar 24 01:46:14 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.11
  GitCommit:        3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.