A robust shell script that automates Docker installation and configuration on major Linux distributions.
- Supports Ubuntu, Debian, Raspberry Pi OS (64-bit), Fedora, and CentOS
- Handles repository setup and package installation
- Properly configures user permissions
- Verifies installation with test container
- Color-coded output for easy debugging
- Linux system (one of the supported distributions)
sudoprivileges- Internet connection
# Clone the repository locally:
git clone https://github.com/hellofuji/docknstall
# Make the script executable:
chmod +x docknstall.sh
# Run the script:
./docknstall.shAfter installation completes:
# Log out and back in for group changes to take effect
logout
# Verify Docker works without sudo:
docker run hello-world