Install docker (Debian family)This script installs Docker Engine on both Debian and Ubuntu systems.
It automatically detects the operating system, configures the correct official Docker APT repository, removes conflicting packages, installs the required dependencies, and installs Docker Engine, Docker CLI, containerd, Buildx, and the Docker Compose plugin.
The script can be run as root or as a regular user. If it is executed by a non-root user and sudo is available, it uses sudo only where required. After installation, the current non-root user is added to the docker group so Docker can be used without sudo after logging out and back in.
Supported distributions:
- Debian
- Ubuntu
bash@deividas