Why this script is better than the official Docker Convenience Scripts:
- It installs latest STABLE release (instead of Edge or Testing release).
- It has the ability to re-install or uninstall previous Docker installations.
- It has the ability to install Homebrew for MacOS with Docker Desktop installed via Cask.
- I created it before there were ever any official convenience scripts, so it's got a good track record.
I've never tried the official convenience scripts, because I have no reason to install an unstable version of Docker.
I can't say for sure, because I've never even looked at Docker's convenience scripts, but I would be genuinely surprised if they supported MacOS, Kali, and Arch.
- MacOS 10.8+
- Ubuntu
- Debian 8+
- Raspbian 8+
- Centos/RHEL/Amazon Linux
- Fedora 30+
- Arch
- Kali 2018+
git clone https://github.com/phx/dockerinstall.git
cd dockerinstall
./install_docker.sh --interactive
curl -fsSL https://tinyurl.com/dockerinstaller | bash
wget -O - https://tinyurl.com/dockerinstaller 2>/dev/null | bash
curl -fsSL https://raw.githubusercontent.com/phx/dockerinstall/master/install_docker.sh | bash
wget -O - https://raw.githubusercontent.com/phx/dockerinstall/master/install_docker.sh 2>/dev/null | bash
or the safer alternative:
git clone https://github.com/phx/dockerinstall.git
cd dockerinstall
./install_docker.sh
Usage: ./install_docker.sh [--interactive | --with-compose]
Installs Docker and/or docker-compose on supported Linux distributions.
--interactive Allows more installation options.
--with-compose Additionally installs docker-compose.
--help Shows this help dialog.
If run without parameters, docker will be installed,
the current user will be added to the docker group,
and docker will be enabled to start on boot.