- Spring 5.0 By Example
- Claudio Eduardo de Oliveira
- 136字
- 2021-06-24 19:17:30
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.
推薦閱讀
- JBoss Weld CDI for Java Platform
- 演進式架構(原書第2版)
- C/C++常用算法手冊(第3版)
- Learning Python Design Patterns(Second Edition)
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- JavaScript:Moving to ES2015
- 51單片機C語言開發教程
- Building Wireless Sensor Networks Using Arduino
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- C專家編程
- Node.js 12實戰
- Swift High Performance
- ASP.NET jQuery Cookbook(Second Edition)
- 基于Docker的Redis入門與實戰
- ASP.NET 4權威指南