Open qiaofeng1227 opened 5 months ago
optimze
use sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse"
replace
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
need fix
if [ $dnf_status -eq 0 ]; then
sudo dnf install yum-utils -y
sudo dnf config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
[root@iZbp11u08t2q9nlzquf6gnZ ~]# dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
Adding repo from: https://download.docker.com/linux/fedora/docker-ce.repo
Curl error (28): Timeout was reached for https://download.docker.com/linux/fedora/docker-ce.repo [Failed to connect to download.docker.com port 443 after 15200 ms: Connection timed out]