- Learn OpenShift
- Denis Zuev Artemii Kropachev Aleksey Usov
- 140字
- 2021-08-13 16:03:46
Managing containers using Docker CLI
The next step is to actually run a container from the image we pulled from Docker Hub or a private registry in the previous chapter. We are going to use the docker run command to run a container. Before we do that, let's check if we have any containers running already by using the docker ps command:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAME
Run a container with the docker run command:
$ docker run httpd
The output of the preceding command will be as shown in the following screenshot:

The container is running, but we cannot leave the terminal and continue working in the foreground. And the only way we can escape it is by sending a TERM signal (Ctrl + C) and killing it.
推薦閱讀
- FreeRTOS實時內核應用指南
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- Mastering Distributed Tracing
- 直播系統開發:基于Nginx與Nginx-rtmp-module
- Linux內核觀測技術BPF
- 突破平面3ds Max動畫設計與制作
- Mastering Reactive JavaScript
- Social Data Visualization with HTML5 and JavaScript
- Agile IT Security Implementation Methodology
- 鴻蒙HarmonyOS應用開發入門
- Windows 8完全自學手冊
- Mastering Eclipse Plug-in Development
- Windows7系統維護百寶箱
- Windows PE權威指南
- Embedded Systems Architecture