docker-compose up时报错Cannot start service web: mkdir /private/var/db/timezone/zoneinfo: file exists

Because the docker time is not allowed, the blogger has carried out the following mounting /etc/localtime:/etc/localtime according to the online method, and the above error will be reported when it can be used for the first time and then restarted.

Because the /etc/localtime on the host machine is a soft link, when I fill in the soft link as the actual path and restart it again, there is no error reported, and the time in the docker is also correct.

Guess you like

Origin blog.csdn.net/weixin_37281289/article/details/106255259