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

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.

主站蜘蛛池模板: 冕宁县| 缙云县| 望城县| 乳山市| 九江市| 龙州县| 湘阴县| 柳州市| 眉山市| 拉孜县| 遂平县| 周口市| 政和县| 克山县| 和政县| 郁南县| 鸡东县| 荔浦县| 望奎县| 泸水县| 湛江市| 莎车县| 武功县| 乳山市| 汉中市| 奈曼旗| 获嘉县| 收藏| 全州县| 西和县| 宿州市| 马龙县| 广元市| 邮箱| 讷河市| 南平市| 高碑店市| 兴义市| 新晃| 崇明县| 嘉祥县|