Container Timezone

Fri Aug 06 2021

Besides setting timezone fixed inside image, I'd prefer passing it from environment variables.

Dockerfile:

Dockerfile
|
FROM ubuntu RUN apt-get update && apt-get upgrade -y \ && apt-get install -y tzdata

commandline:

bash
|
docker run -it -e TZ=America/New_York <IMAGE> date