Linux系统离线安装docker版本19.03或者docker版本20.10

docker离线安装包下载:
https://download.csdn.net/download/qq_14910065/87683473

**我这里的docker安装包是二进制的,适合Linux任何系统:

  1. Debian;
  2. Gentoo;
  3. Ubuntu;
  4. Damn Vulnerable Linux;
  5. 红帽企业级Linux;
  6. CentOS;
  7. Fedora;
  8. Kali Linux;
  9. Arch Linux;
  10. OpenSuse等。**
tar -xvf docker-19.03.9.tgz
tar -xvf docker-20.10.2.tgz
cp docker/*  /usr/bin/ #复制解压下的二进制文件到bin下
cp  docker.service /etc/systemd/system/docker.service
chmod +x /etc/systemd/system/docker.service 
systemctl daemon-reload
systemctl start docker
systemctl enable docker.service
sudo cp docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

cat > /etc/docker/daemon.json << EOF
{
  "registry-mirrors": ["https://qj799ren.mirror.aliyuncs.com"],
   "insecure-registries": ["0.0.0.0/0"],
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2"
}
EOF

systemctl restart docker  && systemctl status docker

欢迎留下您的足迹~

其他docker版本的下载路径:
https://download.docker.com/linux/static/stable/

你可能感兴趣的:(docker容器相关,linux,linux,docker,运维)