运行django项目,报错:时区
docker cp /etc/localtime 324149831bcd:/etc/localtime
docker cp /usr/share/zoneinfo/Asia/Shanghai 324149831bcd:/etc/localtime
还是报错:
Error processing tar file(exit status 1): invalid symlink "/usr/share/zoneinfo/UCT" -> "../PRC"
发现容器内的localtime : localtime -> /usr/share/zoneinfo/Etc/UTC
localtime -> /usr/share/zoneinfo/Asia/Shanghai
所以更改软连接即可