I have a docker file in which there are several Docker files for creating containers. I do not want to edit my Dockerfiles to set time intervals, because they can change at any time by members of my team, and I have a docker-compose.override.yml file to make changes to the local environment. However, one of my containers (based on selenium) does not seem to give out the host time zone, and this creates problems for me. Based on this, I want to use time zones in all containers. In my dockerfiles right now I'm doing
ENV TZ=America/Denver RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
And everything works fine. How to duplicate the same command in docker-compose syntax?
docker containers docker-compose dockerfile devops
noname
source share