Changes for page Install Docker for Windows
Last modified by Bas Elzinga on 2024/12/17 12:20
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -36,7 +36,52 @@ 36 36 * Install latest version of Docker Desktop from https://www.docker.com/products/docker-desktop/ 37 37 * Validate if WSL 2.0 is properly installed 38 38 * Go to the next section around installing the eMagiz Docker agent 39 + 40 + 41 + 42 + #Install docker 43 +sudo apt-get update 44 +sudo apt install --no-install-recommends apt-transport-https ca-certificates curl gnupg2 45 +. /etc/os-release 46 +curl -fsSL https://download.docker.com/linux/${ID}/gpg | sudo tee /etc/apt/trusted.gpg.d/docker.asc 47 +echo "deb [arch=amd64] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list 48 +sudo apt update 39 39 50 +sudo apt install docker-ce docker-ce-cli containerd.io 51 + 52 +#Install Java 53 +wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add - 54 +echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list 55 +sudo apt update # update if you haven't already 56 +sudo apt install temurin-8-jdk 57 + 58 +#Autostart Dockerd with wsl 59 +nano .bashrc 60 + 61 + DOCKER_DISTRO="Ubuntu" 62 + DOCKER_LOG_DIR=$HOME/docker_logs 63 + mkdir -pm o=,ug=rwx "$DOCKER_LOG_DIR" 64 + /mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd < /dev/null > $DOCKER_LOG_DIR/dockerd.log 2>&1" 65 + 66 +#Do not ask password dockerd 67 +sudo visudo 68 + 69 + %docker ALL=(ALL) NOPASSWD: /usr/bin/dockerd 70 + 71 +#Set WSL config for memory 72 +USERDIR/.wslconfig 73 + # Settings apply across all Linux distros running on WSL 2 74 + [wsl2] 75 + 76 + # Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB 77 + memory=16GB 78 + 79 + # Sets the VM to use two virtual processors 80 + processors=2 81 + 82 + 83 +(Exit WSL: wsl --shutdown) 84 + 40 40 ===3.4 Installation requirements Windows Server 2019 version >1806=== 41 41 42 42 These are the requirements to allow the installation of the eMagiz Docker agent: