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

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.

主站蜘蛛池模板: 拜泉县| 临漳县| 延吉市| 清河县| 陇南市| 富民县| 乐陵市| 闽清县| 民和| 屯门区| 含山县| 格尔木市| 东城区| 兴山县| 宁蒗| 娄底市| 彭水| 瑞金市| 长岭县| 九龙坡区| 万荣县| 勐海县| 双江| 溧水县| 铜陵市| 府谷县| 阿巴嘎旗| 靖宇县| 雷山县| 囊谦县| 佛坪县| 迁安市| 定襄县| 寻乌县| 卢湾区| 磐石市| 泰来县| 收藏| 孟连| 乃东县| 开封县|