Skip to main content

Ubuntu Install Docker

· One min read

ref: Install from a package

wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/containerd.io_1.6.9-1_amd64.deb && \
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_24.0.2-1~ubuntu.18.04~bionic_amd64.deb && \
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce-cli_24.0.2-1~ubuntu.18.04~bionic_amd64.deb && \
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-buildx-plugin_0.10.5-1~ubuntu.18.04~bionic_amd64.deb && \
wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-compose-plugin_2.18.1-1~ubuntu.18.04~bionic_amd64.deb && \
dpkg -i containerd.io_1.6.9-1_amd64.deb \
docker-ce_24.0.2-1~ubuntu.18.04~bionic_amd64.deb \
docker-ce-cli_24.0.2-1~ubuntu.18.04~bionic_amd64.deb \
docker-buildx-plugin_0.10.5-1~ubuntu.18.04~bionic_amd64.deb \
docker-compose-plugin_2.18.1-1~ubuntu.18.04~bionic_amd64.deb

如果安装失败, 执行 apt --fix-broken install