Changes for page Install Docker for Linux

Last modified by Bas Elzinga on 2024/12/17 12:14

From version 94.1
edited by Erik Bakker
on 2024/02/08 16:46
Change comment: There is no comment for this version
To version 96.1
edited by Erik Bakker
on 2024/02/08 16:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -22,16 +22,39 @@
22 22   ** controlplane.emagiz.com:8000
23 23   ** Preferably the entry should be *.emagiz.com
24 24  
25 -===3.2 Installation requirements Linux===
26 -Whenever Linux is selected as operating system, the latest version of Ubuntu will work. Other Linux distributions will also work such as Debian or Red Hat.
27 -**Step 1: Install linux distribution**
25 +===3.2 Installation Linux===
26 +Whenever Linux is selected as operating system, the latest version of Ubuntu will work. Other Linux distributions will also work such as Debian or Red Hat.
27 +
28 +==== 3.2.1 Set up Docker's apt repository ====
29 +
28 28  {{code language="cmd"}}
29 - curl -fsSL https://download.docker.com/linux/${ID}/gpg | sudo tee /etc/apt/trusted.gpg.d/docker.asc
30 - echo "deb [arch=amd64] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list
31 - sudo apt update
32 - sudo apt install docker-ce docker-ce-cli containerd.io
31 +# Add Docker's official GPG key:
32 +sudo apt-get update
33 +sudo apt-get install ca-certificates curl
34 +sudo install -m 0755 -d /etc/apt/keyrings
35 +sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
36 +sudo chmod a+r /etc/apt/keyrings/docker.asc
37 +
38 +# Add the repository to Apt sources:
39 +echo \
40 + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
41 + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
42 + sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
43 +sudo apt-get update
33 33  {{/code}}
34 34  
46 +==== 3.2.2 Install Docker ====
47 +
48 +{{code language="cmd"}}
49 +sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
50 +{{/code}}
51 +
52 +==== 3.2.3 Verify succesfull installation of the Docker Engine ====
53 +
54 +{{code language="cmd"}}
55 +sudo docker run hello-world
56 +{{/code}}
57 +
35 35  {{info}}
36 36   Requires ~335 Mb space to install
37 37  {{/info}}
... ... @@ -48,5 +48,6 @@
48 48  == 5. Suggested Additional Readings ==
49 49  
50 50  * Docker command line cheatsheet: [[image:Main.Images.Microlearning.WebHome@docker-cheatsheet.png]]
74 +* [[Docker official installation guide>>https://docs.docker.com/engine/install/ubuntu/||target="blank"]]
51 51  
52 52  )))((({{toc/}}))){{/container}}{{/container}}