Skip to content

Instantly share code, notes, and snippets.

@sidja
Created January 23, 2017 02:11
Show Gist options
  • Select an option

  • Save sidja/833eb9824ada2684773553824f28e910 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

thanks!!!!

@skywallger

Copy link
Copy Markdown

Very Good. Complete with this solution.

ghost commented May 31, 2022

Copy link
Copy Markdown

thanks

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