Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ex. 2.04 - docker build process stops with question of TimeZone #46

Open
dmitriyteteruk opened this issue Jul 14, 2021 · 0 comments
Open

Comments

@dmitriyteteruk
Copy link

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.
image

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"]
@dmitriyteteruk 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant