Dockerfile中修改ubuntu 18.04时区
2021/10/21 7:11:32
本文主要是介绍Dockerfile中修改ubuntu 18.04时区,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
# check now timezone $ date -R Sun, 21 Oct 2018 23:35:04 +0800 # change timezone to Shanghai if it is wrong apt update apt install -y tzdata echo "Asia/Shanghai" > /etc/timezone rm -f /etc/localtime # maybe you need to rm -rf /usr/share/zoneinfo/UTC dpkg-reconfigure -f noninteractive tzdata #output Current default time zone: 'Asia/Shanghai' Local time is now: Sun Oct 21 22:33:36 CST 2018. Universal Time is now: Sun Oct 21 14:33:36 UTC 2018.
这篇关于Dockerfile中修改ubuntu 18.04时区的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-28duckdns docker
- 2024-03-21docker add host
- 2024-03-14denied: requested access to the resource is denied docker push
- 2024-03-07docker graylog
- 2024-03-05Docker容器实战(00)-基础命令大全
- 2024-03-01dockerd-entrypoint.sh
- 2024-02-23linux mint install docker
- 2024-01-18angular docker
- 2024-01-10优雅而强力地卸载docker-desktop
- 2024-01-09完蛋,我被挖矿木马包围了|使用 TLS 连接 Docker