Skip to content

Instantly share code, notes, and snippets.

@wohugb
Last active January 11, 2023 02:50
Show Gist options
  • Save wohugb/2af59507ebe8e7cf6a2d4cc15554150d to your computer and use it in GitHub Desktop.
Save wohugb/2af59507ebe8e7cf6a2d4cc15554150d to your computer and use it in GitHub Desktop.
修改alpine时区
# 修改安装镜像
# 清华大学
# sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
# 淘宝
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# 安装设置删除清理
apk --update add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata && \
rm -rf /var/cache/apk/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment