This script is designed for CentOS-based systems to automate the installation of Docker. It checks if Docker is already installed, and if not, it proceeds with the system update, adds the Docker repository, installs Docker along with docker-compose, starts the Docker service, and adds the current user to the Docker group.
- CentOS or other compatible Linux distribution
sudo
privileges for the executing user
- Download the script: Download the script to your local machine.
- Make it executable: Change the script's permissions to make it executable using the command:
chmod +x install_docker.sh