Install Docker ANY Linux Distro
#
Docker Installer & Verifier
A production-ready bash script that detects whether Docker is already installed and, if not, installs Docker CE + the Docker Compose plugin using the official repository for your Linux distribution.
---
##
🇬🇧 English
###
Features
- **
hello-world`world container run.curl, gnupg, lsb-release`release, etc.) before touching Docker.[PROC]`, green [ OK ]`, red [FAIL]`, cyan [INFO]`.docker sudo docker`docker after logout/login.
###
Requirements
-
- A supported Linux distribution (see above).
- - Either root access or a user in the
`sudo`sudogroup.- - Internet connection (to reach the Docker repository).
###
Usage
Download and run:
```bash
curl -fsSL -o install-docker.sh https://example.com/install-docker.sh
chmod +x install-docker.sh
./install-docker.sh
```
Or if you already have it locally:
```bash
chmod +x install-docker.sh
./install-docker.sh
```
###
What it does, step by step
1.
/etc/os-release`release and picks the right package manager.docker-ce`ce, docker-ce-cli`cli, containerd.io`io, docker-buildx-plugin`plugin, docker-compose-plugin`plugin, enables and starts the service, runs hello-world`world as a final sanity check, and adds your user to the docker group.
###
Exit codes
-
0 — success (either already installed or freshly installed).[FAIL]` message explains what.
###
Troubleshooting
-
docker group membership takes effect, or run newgrp docker`docker.HTTP_PROXY/HTTPS_PROXY before running the script.docker.io`io / podman-docker`docker first with your package manager, then re-run this script to get the official Docker CE.
---
##
🇬🇷 Ελληνικά
###
Χαρακτηριστικά
- **
hello-world`world.curl, gnupg, lsb-release`release κ.λπ.) πριν την εγκατάσταση του Docker.[PROC]`, πράσινο [ OK ]`, κόκκινο [FAIL]`, κυανό [INFO]`.docker ώστε να μη χρειάζεται sudo docker`docker μετά από logout/login.
###
Προϋποθέσεις
-
- Υποστηριζόμενη διανομή Linux (βλ. παραπάνω).
- - Πρόσβαση root ή χρήστης στην ομάδα
`sudo`sudo.- - Σύνδεση στο διαδίκτυο (για πρόσβαση στο αποθετήριο του Docker).
###
Χρήση
Κατεβάστε και τρέξτε:
```bash
curl -fsSL -o install-docker.sh https://example.com/install-docker.sh
chmod +x install-docker.sh
./install-docker.sh
```
Ή, αν το έχετε ήδη τοπικά:
```bash
chmod +x install-docker.sh
./install-docker.sh
```
###
Τι κάνει, βήμα προς βήμα
1.
/etc/os-release`release και επιλέγει τον κατάλληλο package manager.docker-ce`ce, docker-ce-cli`cli, containerd.io`io, docker-buildx-plugin`plugin, docker-compose-plugin`plugin, ενεργοποιεί και ξεκινά την υπηρεσία, τρέχει το hello-world`world ως τελικό έλεγχο, και προσθέτει τον χρήστη στην ομάδα docker.
###
Κωδικοί εξόδου
-
0 — επιτυχία (είτε ήταν ήδη εγκατεστημένο, είτε εγκαταστάθηκε τώρα).[FAIL]` μήνυμα εξηγεί τι.
###
Αντιμετώπιση προβλημάτων
-
docker, ή τρέξτε newgrp docker`docker.HTTP_PROXY/HTTPS_PROXY πριν τρέξετε το script.docker.io`io / podman-docker`docker με τον package manager σας, και μετά ξανατρέξτε αυτό το script για να πάρετε το επίσημο Docker CE.
---
##
License
MIT — use, modify, and redistribute freely.