- 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.
推薦閱讀
- Linux運維之道(第3版)
- 發布!設計與部署穩定的分布式系統(第2版)
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- 深入理解eBPF與可觀測性
- Windows 7案例教程
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- 操作系統分析
- 計算機系統的自主設計
- Building Telephony Systems With Asterisk
- Windows Server 2008組網技術與實訓(第3版)
- Multi-Cloud for Architects
- Serverless Architectures with Kubernetes
- iOS Programming Cookbook
- SAP后勤模塊實施攻略:SAP在生產、采購、銷售、物流中的應用
- Apache ShardingSphere權威指南