From b9e6dace9bae1965b8a79a9edd275f4caf37023c Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Wed, 8 Dec 2021 07:28:28 +0100 Subject: [PATCH] include docker readme --- Docker/README.md | 34 ++++++++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Docker/README.md diff --git a/Docker/README.md b/Docker/README.md new file mode 100644 index 0000000..9f647cc --- /dev/null +++ b/Docker/README.md @@ -0,0 +1,34 @@ +# Install Docker on Debian + +## Prepare the system + +```sudo apt-get update``` + +```sudo apt-get install ca-certificates curl gnupg lsb-release``` + +```curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg``` + +```echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(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``` + +## Install Docker Compose V2 + +```mkdir -p /usr/local/lib/docker/cli-plugins``` + +```curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose``` + +```chmod +x /usr/local/lib/docker/cli-plugins/docker-compose``` + +## Verify + +```docker --version``` -> Docker version ..., build ... +```docker compose version``` -> Docker Compose version v2.0.1 + +## Add current user to the docker group + +```sudo usermod -aG docker ${USER}``` \ No newline at end of file diff --git a/README.md b/README.md index e329374..26902c2 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,6 @@ This repository should give you a good start on how to setup a debian server to [Secure the System](https://github.com/flohoss/setupDebianServer/tree/main/SecureSystem) -[Create an informative Message of the Day](https://github.com/flohoss/setupDebianServer/tree/main/MessageOfTheDay) \ No newline at end of file +[Create an informative Message of the Day](https://github.com/flohoss/setupDebianServer/tree/main/MessageOfTheDay) + +[Install Docker on Debian](https://github.com/flohoss/setupDebianServer/tree/main/Docker) \ No newline at end of file