Home > other >  Some of the confusion about dockerfile mirror
Some of the confusion about dockerfile mirror

Time:01-29

Why when I build dockerfile mirror, always unable to build success,
Command is this: zhaodong @ zhaodong - Lenovo G460: ~ $docker build -t jamtur01/nginx
Always appear such tip: docker: "build" the requires 1 argument. See 'docker build -- help'.
O master

CodePudding user response:

Docker: "build" the requires 1 argument. See 'docker build -- help'

CodePudding user response:

Docker build - tag="ouruser/sinatra: v3" - & lt; Dockerfile

CodePudding user response:

Docker build -t jamtur01/nginx & lt; Dockerfile directory & gt;
If is the current directory, simply enter "docker build - t jamtur01/nginx.".

CodePudding user response:

Docker build - t jamtur01/nginx.

CodePudding user response:


Docker import
Docker: "import" requires a minimum of 1 argument.
See the 'docker import -- help'.

Usage: docker import [OPTIONS] file | | - URL [REPOSITORY [: TAG]]

Import the contents from a tarball to create a filesystem image

Seem to.

CodePudding user response:

A less
Docker build - t jamtur01/nginx.

CodePudding user response:

Finally add a space, one in English, OK

CodePudding user response:

Command a English less "."

CodePudding user response:

A hole, the place is dockerfile file name, must be dockerfile

Don't thank!

CodePudding user response:

Upstairs positive solution, also solved my question

CodePudding user response:

Also encounter this problem, the docker: "build" the requires 1 argument.
Solution docker build -t runoob/centos: 6.7. (space)
  • Related