官术网_书友最值得收藏!

Docker run

docker run is the most common Docker command. This command should be used to start the containers. The basic structure of a command is as follows:

docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

The options arguments enable some configurations for the container, for instance, the      --name argument permits you to configure a name for a container. It is important for DNS when the container is running in a bridge network.

The network settings can be configured on the run command as well, and the parameter is  -- net. This enables us to configure the network to which the container will be attached. 

Another important option is detached. It indicates whether the container will run in the background. The -d parameter instructs Docker to run a container in the background.

主站蜘蛛池模板: 嘉祥县| 土默特右旗| 泰兴市| 恩施市| 滨海县| 邳州市| 清原| 甘泉县| 新田县| 澜沧| 蒲江县| 晋城| 临湘市| 准格尔旗| 盐山县| 宁乡县| 崇州市| 宜宾县| 历史| 舒兰市| 连云港市| 普定县| 周宁县| 云浮市| 铁岭县| 龙陵县| 静安区| 辉南县| 东辽县| 文安县| 军事| 兰溪市| 登封市| 白山市| 鹤庆县| 锦屏县| 柳林县| 梁河县| 隆尧县| 会理县| 邵阳市|