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

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.

主站蜘蛛池模板: 克东县| 辽源市| 邻水| 永吉县| 鄱阳县| 琼中| 始兴县| 阜康市| 平乐县| 射洪县| 曲阜市| 汝阳县| 阳西县| 济阳县| 霸州市| 且末县| 星子县| 唐海县| 南岸区| 墨竹工卡县| 个旧市| 泸溪县| 朝阳区| 永川市| 晋中市| 泾阳县| 华安县| 五家渠市| 桂东县| 专栏| 嘉鱼县| 思南县| 亚东县| 黄大仙区| 香港 | 潮州市| 台中县| 舟山市| 五华县| 景泰县| 湄潭县|