You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Command "docker build" with Dockerfile from exercise 2.04 stops when Time Zone ask appears. Entering any number for time-zone does not help.
Workaround is to add time-zone using ENV directive.
Below code of Dockerfile has worked for me.
# WORKDIR, COPY and ADD example
FROM ubuntu:latest
# Choose your area and city instead of mine
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install apache2 -y
WORKDIR /var/www/html/
COPY index.html .
ADD https://www.docker.com/sites/default/files/d8/2019-07/Moby-logo.png ./logo.png
CMD ["ls"]
The text was updated successfully, but these errors were encountered:
dmitriyteteruk
changed the title
docker build process stops with question of TimeZone
Ex. 2.04 - docker build process stops with question of TimeZone
Jul 14, 2021
Hi! Command "docker build" with Dockerfile from exercise 2.04 stops when Time Zone ask appears. Entering any number for time-zone does not help.
Workaround is to add time-zone using ENV directive.
Below code of Dockerfile has worked for me.
The text was updated successfully, but these errors were encountered: