LoginSignup
3
4

More than 5 years have passed since last update.

docker-composeで立ち上げたコンテナのタイムゾーンをホストと同じにする

Posted at

タイムゾーンをホストと同じにするために、 /etc/localtime を起動時にマウントしてしまう。

docker-compose.yml
webpage:
  image: nginx
  volumes:
    - /etc/localtime:/etc/localtime

これで一応タイムゾーンがホストと一緒になったけどもなんかモヤモヤする感じ。もっといい設定方法がありそう。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4