0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

docker-compose で不思議なエラー

Last updated at Posted at 2021-10-13

当方、mac os Catalina 10.15.7(19H2)+Docker desktop

よくわかっておりませんが・・
Dockerでselenium動かしてるんだけど
docker-compose up -d
したら以下のようなエラーが発生し起動できず・・

$ docker-compose up -d
WARNING: Some networks were defined but are not used by any service: backend
Starting pppp1 ... error

ERROR: for pppp1  Cannot start service pppp1: error while creating mount source path '/host_mnt/private/var/db/timezone/tz/2021a.1.0/zoneinfo/Asia/Tokyo': mkdir /host_mnt/private/var/db/timeStarting pppp1  ... done

ERROR: for pppp1  Cannot start service pppp1: error while creating mount source path '/host_mnt/private/var/db/timezone/tz/2021a.1.0/zoneinfo/Asia/Tokyo': mkdir /host_mnt/private/var/db/timezone/tz/2021a.1.0: operation not permitted
ERROR: Encountered errors while bringing up the project.

権限ないんかな・・

調べてみると
/private/var/db/timezone/tz/2021a.2.0
というディレクトリはあるので、

sudo cp -rfp /private/var/db/timezone/tz/2021a.2.0 /private/var/db/timezone/tz/2021a.1.0

としてやったら
docker-compose up -dが正常に動いて起動した

よくわかっておりません・・

追記
2022/7/10時点ではこうしなきゃでした

sudo cp -rfp /private/var/db/timezone/tz/2022a.1.0 /private/var/db/timezone/tz/2021a.3.0
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?