I am building an Ubuntu 18.04 based Docker image. It is building ok but before finish I receive in the Powershell console:
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
1. Africa 6. Asia 11. System V timezones
2. America 7. Atlantic Ocean 12. US
3. Antarctica 8. Europe 13. None of the above
4. Australia 9. Indian Ocean
5. Arctic Ocean 10. Pacific Ocean
Geographic area:
----
As I understand it waits some answer from me but I cannot enter any numbers, i.e. no reactions on keyboard. How to avoid this question? May be in I can add a CMD into the dockerfile ?
I had the same issue in Dockerfile
, then I used
ARG DEBIAN_FRONTEND=noninteractive
after base image and it works for me:
Example Dockerfile:
FROM ubuntu
ARG DEBIAN_FRONTEND=noninteractive
This worked for me.
ENV TZ=Asia/Kolkata \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install tzdata
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With