Docker时间错误

0

以下配置时间还是错误:

    volumes:
      - /etc/localtime:/etc/localtime:ro
    environment:
      - TimeZone=Asia/Shanghai

修改配置:

    environment:
      - TZ=Asia/Shanghai

OK