Skip to content

Commit

Permalink
improve how-to-install-the-latest-docker-engine-via-docker-script
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshix-1 committed Dec 12, 2023
1 parent 181a2a0 commit 3e238f2
Showing 1 changed file with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,44 @@ author_name: Peter Mesiha
author_url: https://github.com/MrReginaldKray
author_image:
author_bio:
tags: [shell, ssh, linux, docker]
tags: [shell, ssh, debian, linux, docker]
netcup_product_url: https://www.netcup.de/bestellen/produkt.php?produkt=2884
language: en
available_languages: [en]
---

# Introduction

This tutorial describes how to install the latest Docker Engine on your server.
This tutorial describes how to install the latest Docker Engine on your debian/ubuntu server.
This will use the official script on https://get.docker.com which adds the docker
apt-repository and installs the required packages from there.

# Requirements

- Linux based server
- Debian based server
- curl or wget
- sudo

# Step 1 - Uninstall old Docker Engine, CLI, containerd, and Docker Compose packages

``` bash
```bash
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
```

``` bash
```bash
sudo apt-get update
```

# Step 2 - Curl the script for installation from docker
# Step 2 - Download the script for installation from docker

``` bash
curl -fsSL https://get.docker.com -o get-docker.sh
```bash
curl -fsS -o get-docker.sh https://get.docker.com
```

or

```bash
wget -O get-docker.sh https://get.docker.com
```

# Step 3 - Dry run the script to check for complications
Expand All @@ -46,11 +56,12 @@ sudo sh ./get-docker.sh --dry-run

# Step 4 - Finally run the script

This will install docker by adding their repository to a apt.
``` bash
sudo sh ./get-docker.sh
```

# Step 4 - Verify the installation
# Step 5 - Verify the installation

``` bash
docker --version
Expand Down

0 comments on commit 3e238f2

Please sign in to comment.