b76eabe98f2b7e6f15903307526534b43859c069
Sure — here’s a quick README section you can paste:
Install Docker + Docker Compose
This script auto-detects the OS and installs:
- Docker Engine
- Docker CLI
- containerd
- Docker Buildx plugin
- Docker Compose plugin
Supported OS families
- Ubuntu / Debian
- AlmaLinux / RHEL / Rocky / CentOS / Fedora
Run
chmod +x install_docker_compose.sh
sudo ./install_docker_compose.sh
What it does
- Detects the Linux distribution from
/etc/os-release - Adds Docker’s official package repository
- Installs the latest Docker packages
- Starts and enables the Docker service
- Verifies the install with:
docker --versiondocker compose version
Notes
- Must be run as
rootor withsudo - On Debian/Ubuntu, it installs from Docker’s official APT repo
- On Alma/RHEL-family systems, it installs from Docker’s official DNF repo
Verify manually
docker --version
docker compose version
sudo systemctl status docker
If you want, I can also turn that into a cleaner full README.md with a title, usage, supported platforms, and troubleshooting.
Description
Languages
Shell
100%