From d7ed55098d852ff25c3d3988cc2dccfd70a5aba1 Mon Sep 17 00:00:00 2001 From: Robin Schulte Date: Thu, 20 Oct 2022 10:02:28 +0200 Subject: [PATCH] Add Docker CE installation to docs --- Container-orchestration/Docker/readme.md | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Container-orchestration/Docker/readme.md b/Container-orchestration/Docker/readme.md index 47fabe7..1508438 100644 --- a/Container-orchestration/Docker/readme.md +++ b/Container-orchestration/Docker/readme.md @@ -43,6 +43,32 @@ sudo apt-get install docker.io ``` +--- + +- As an alternative you can install the official Docker CE (Community-Edition) like the following + + ``` +# Install Prerequisites +sudo apt-get install ca-certificates curl gnupg lsb-release + +# Add dockers official gpg key +sudo mkdir -p /etc/apt/keyrings + +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg + + +# Setup repository +echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ + $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null + + +# Install Docker Engine +sudo apt-get update + +sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin + ``` + - Check for installed version ``` $ docker version ```