Home > other >  Consult, docker run appear No command specified is...?
Consult, docker run appear No command specified is...?

Time:09-27

As title, docker run - d - p XXX luxn/mysql
This also need to specify instructions?
I see examples do not specify a

The question and the answer from CSDN Docker technical communication group (303806405), by the webmaster xinshubiao finishing,

CodePudding user response:

Need not to need to specify instructions, to see your mirror luxn/mysql have specify a default service operation,
If not specified, it shall be the docker the run command finally specified;
If specified, the docker last can not specify the run command, use the default; You can also specify that override the default

How to view specify a default operation service? Docker inspect image

the question and the answer from CSDN Docker technology exchange group (303806405), by the moderator xinshubiao,

CodePudding user response:

Docker run - d - p luxn XXX/mysql/bin/bash

This specifies whether the specified by docker inspect id to see if any CMD

CodePudding user response:

Docker run - d - I - t docker. Image/usr/bin/bash


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

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG]...

Run a command in a new container


  • Related