国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
# Init pacman mirror | |
curl -s -L "https://www.archlinux.org/mirrorlist/?country=CN&protocol=http&ip_version=6" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist | |
# Init key | |
pacman-key --init | |
# Init archlinux key | |
pacman-key --populate archlinux | |
# Update archlinux-keyring | |
yes '' | pacman -Sy archlinux-keyring | |
# Sync repo | |
yes '' | pacman -Syu |