Site icon 咖啡偶-IT日常

RockyLinux 安裝 docker

現在安裝docker 跟喝水一樣, 完全沒難度阿


dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf update -y
dnf install -y docker-ce docker-ce-cli containerd.io
docker --version

#########
#ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd --data-root /docker -H fd:// --containerd=/run/containerd/containerd.sock
#########
systemctl daemon-reload
systemctl enable docker
systemctl start docker
docker ps
Exit mobile version