I'm using Docker 19. I have the following Dockerfile. Notice how I set the time zone to US EST ...
FROM microsoft/mssql-server-linux:latest
RUN apt-get update
RUN apt-get install unzip -y
RUN apt-get install tzdata
ENV TZ=America/New_York
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
...
Is there any way I can author my file such that the time zone gets set to the local machine that it's running on? I'm on Central time zone but have team mates in other time zones. If it's useful, the above is part of a docker-compose file that looks roughly like this ...
version: "3.2"
services:
sql-server-db:
build: ./
container_name: sql-server-db
image: microsoft/mssql-server-linux:2017-latest
ports:
- 1433:1433
Some of us are on Macs, but it's possible for folks to be on Windows or Ubuntu. If it's easier you can consider that everyone is on Macs.