Skip to content

Instantly share code, notes, and snippets.

@sidja
Created January 23, 2017 02:11
Show Gist options
  • Save sidja/833eb9824ada2684773553824f28e910 to your computer and use it in GitHub Desktop.
Save sidja/833eb9824ada2684773553824f28e910 to your computer and use it in GitHub Desktop.
How to change time zone in docker container ubuntu
FROM ubuntu:16.04
ENV TZ=Australia/Melbourne
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN dpkg-reconfigure --frontend noninteractive tzdata
@cfloress
Copy link

thanks!!!!

@skywallger
Copy link

Very Good. Complete with this solution.

Copy link

ghost commented May 31, 2022

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment