Docker中alipne系统镜像操作
1-查询系统版本
# 查询是否属于alipne系统
cat /proc/version
uname -a
2-修改下载源,并更新安装基础套件
# 修改为阿里的源
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# 更新
apk update
#
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
apk update
apk add net-tools
apk add curl
# 修改时区
apk add -U tzdata
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime