<p>The problem is a typo in your build command:</p>
<blockquote>
<p>docker build -f webserver .</p>
</blockquote>
<p>what's the webserver file you are using for that build if the script is described in the Dockerfile?
BTW I have built your image and there is no interactive menu appeared, so just build it))</p>
<p><code>docker build -t webserver .</code></p>

CC BY-SA 4.0
2020-08-26T18:15:36.473Z
2020-09-01T14:05:07.663Z
2020-09-01T14:05:07.663Z
Hakob
<p>I am trying to create an Image which will run ftp server on centos. Dockerfile content is as below:</p>
<pre><code>FROM centos
 
RUN \
  yum update -y &amp;&amp; \
  yum install vsftpd -y 
 
EXPOSE 21
CMD vsftpd -DFOREGROUN
</code></pre>
<p>I am running below command :</p>
<pre><code>docker build -f webserver .
</code></pre>
<p>which is asking me input as below:</p>
<pre><code>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      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area: 9
</code></pre>
<p>once I enter 9 and press enter button, it stuck at the same window. Can you please help me, how should I process this?</p>

<docker><dockerfile>
Unable to build Image as it is asking some input
Puneet Dixit
# Unable to build Image as it is asking some input

(Asked by: username_0 on 2020-08-22)

I am trying to create an Image which will run ftp server on centos. Dockerfile content is as below:
FROM centos
 
RUN \
  yum update -y && \
  yum install vsftpd -y 
 
EXPOSE 21
CMD vsftpd -DFOREGROUN

I am running below command :
docker build -f webserver .

which is asking me input as below:
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      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area: 9

once I enter 9 and press enter button, it stuck at the same window. Can you please help me, how should I process this?

**Tags:** docker, dockerfile


---

## 1 answers

### Answer by username_1 on 2020-08-26. Score: 0

The problem is a typo in your build command:

> docker build -f webserver .

what's the webserver file you are using for that build if the script is described in the Dockerfile?
BTW I have built your image and there is no interactive menu appeared, so just build it))

`docker build -t webserver .`


---

