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

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.

主站蜘蛛池模板: 历史| 明水县| 乳源| 漠河县| 夏邑县| 镇宁| 梨树县| 汉川市| 永兴县| 邵阳市| 辽阳市| 中西区| 武陟县| 巴林左旗| 稷山县| 随州市| 古交市| 宁津县| 卫辉市| 佛坪县| 和林格尔县| 岫岩| 海门市| 犍为县| 潞西市| 开鲁县| 余干县| 蕉岭县| 南投市| 桐城市| 勐海县| 桑日县| 佳木斯市| 镇沅| 高邑县| 星子县| 秦皇岛市| 汤原县| 古蔺县| 岳池县| 彭山县|