- 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.
推薦閱讀
- Java程序設計(慕課版)
- Python程序設計教程(第2版)
- 騰訊iOS測試實踐
- Web交互界面設計與制作(微課版)
- Internet of Things with the Arduino Yún
- Windows Server 2012 Unified Remote Access Planning and Deployment
- 編譯系統透視:圖解編譯原理
- Reactive Android Programming
- C語言程序設計學習指導與習題解答
- Linux Device Drivers Development
- Highcharts Cookbook
- BeagleBone Black Cookbook
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- 利用Python進行數據分析
- 深入理解C指針