LoginSignup
10
5

More than 5 years have passed since last update.

dockerでRoRを扱って、TZInfo::DataSourceNotFound: No source of timezone data could be found.

Last updated at Posted at 2017-04-18

dockerのubuntu:16.04を使っていて、Ruby on Rails(Readmine)をビルドしている時に以下のエラーが発生した。

TZInfo::DataSourceNotFound: No source of timezone data could be found.

どうやら、今のUbuntuイメージには/usr/share/zoneinfoがないのが原因らしい。

Dockerfileに以下を追加する。

RUN apt install tzdata

参考 https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2229

10
5
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
10
5