# 拉取镜像
docker pull ubuntu:20.04
# 运行容器并进入控制台
docker run -it --name vuepress -p 8080:8080 -v ~/vuepress:/workspace ubuntu:20.04 /bin/bash
# 在容器中,先替换镜像源
sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
apt update
...About 1 min