Click here to Skip to main content
15,665,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting below error while creating image in local machine.
Please help on this.

C:\Program Files\Docker\Docker\devops-master-class-master\projects\hello-world\hello-world-python>docker build -tag in28min/Hello-world-java:0.0.2 RELEASE .
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile


What I have tried:

I am getting below error while creating image in local machine. 
Please help on this.

<pre>C:\Program Files\Docker\Docker\devops-master-class-master\projects\hello-world\hello-world-python>docker build -tag in28min/Hello-world-java:0.0.2 RELEASE .
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
Posted
Updated 18-Oct-22 12:56pm
Comments
Richard MacCutchan 18-Oct-22 10:59am    
What part of the error message do you not understand?
Rajesh Yerramsetti 18-Oct-22 11:06am    
C:\Program Files\Docker\Docker\devops-master-class-master\projects\hello-world\hello-world-python>docker build -tag in28min/Hello-world-java:0.0.2 RELEASE .

Executing above command getting below error
"docker build" requires exactly 1 argument.
See 'docker build --help'.

Usage: docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile

1 solution

It's probably because you have to specify the "-tag" option as "--tag" instead. Read the "docker build --help" again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900