Docker Timezone in Ubuntu 16.04 Image

前端 未结 10 1772
借酒劲吻你
借酒劲吻你 2020-12-13 10:40

I have created a Docker container using the Ubuntu 16.04 image.

docker run -it -d --name containername -v /var/www/public --privileged ubuntu
10条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 11:01

    Simply map the volume while running docker container

    -v /etc/timezone:/etc/timezone:ro

提交回复
热议问题