This is a script to install docker binaries. It can help you quickly extract the docker binaries from various mirrors without the steps of setting up the repository.
Supports installation on more operating systems, centos, debian, ubuntu, openSUSE, Kali, archlinux, manjaro, gentoo, Alpine, voidlinux, artixlinux, antixlinux.
Support docker-compose binary installation.
Support systemd、openrc、runit.
curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh | bash -s docker --mirror Tuna --version 20.10.18
or with docker-compose
curl -fsSL https://cdn.jsdelivr.net/gh/dyrnq/install-docker@main/install-docker.sh | bash -s docker --mirror Tuna --version 20.10.18 --with-compose --compose-version 1.29.2 --compose-mirror daocloud
git clone --depth 1 https://github.com/dyrnq/install-docker.git
or
curl -fsSL -O https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh
or
curl -fsSL -O https://cdn.jsdelivr.net/gh/dyrnq/install-docker@main/install-docker.sh
or
curl -fsSL -O https://ghproxy.com/https://raw.githubusercontent.com/dyrnq/install-docker/main/install-docker.sh
chmod +x ./install-docker.sh
- --version
./install-docker.sh --mirror Tuna --version 20.10.18 --prefix /usr/local/bin
- --mirror
- --with-compose
./install-docker.sh --mirror Tuna --version 20.10.18 --prefix /usr/local/bin --with-compose --compose-version 1.29.2 --compose-mirror daocloud --compose-prefix /usr/local/bin
- --dry-run
./install-docker.sh --mirror Tuna --dry-run
Name | Description | Default |
---|---|---|
--mirror | mirror of docker binary download url | |
--prefix | docker binary installation directory | /usr/local/bin |
--version | docker binary version | 20.10.2 |
--with-compose | install docker-compose | |
--compose-prefix | docker-compose installation directory | /usr/local/bin |
--compose-version | docker-compose version | 1.28.2 |
--compose-mirror | mirror of docker-compose download url | |
--systemd-mirror | mirror of dockerd`s systemd unit files | jsdelivr |
--no-systemd | do not install dockerd`s systemd unit files | |
--daemon-json | daemon.json path or url | |
--daemon-json-prefix | daemon.json path | /etc/docker |
--no-daemon-json | do not install daemon.json | |
--with-openrc | will install dockerd`s init.d files | |
--openrc-mirror | mirror of dockerd`s init.d files | jsdelivr |
--with-runit | will install dockerd`s runit files | |
--runit-mirror | mirror of dockerd`s runit files | jsdelivr |
--dry-run | dry run | |
--override-existing | override existing |