mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -19,8 +19,6 @@ Podman 支持多种操作系统,安装过程也相对简单。
|
||||
|
||||
### 17.3.1 CentOS / RHEL
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ sudo yum -y install podman
|
||||
```
|
||||
@@ -41,8 +39,6 @@ $ podman machine start
|
||||
|
||||
### 17.3.1 运行容器
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## $ docker run -d -p 80:80 nginx:alpine
|
||||
|
||||
@@ -51,16 +47,12 @@ $ podman run -d -p 80:80 nginx:alpine
|
||||
|
||||
### 17.3.2 列出容器
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ podman ps
|
||||
```
|
||||
|
||||
### 17.3.3 构建镜像
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ podman build -t myimage .
|
||||
```
|
||||
@@ -89,8 +81,6 @@ $ alias docker=podman
|
||||
|
||||
### 17.3.1 进阶用法
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
#### Systemd 集成
|
||||
|
||||
Podman 可以生成 systemd 单元文件,让容器像普通系统服务一样管理。
|
||||
|
||||
Reference in New Issue
Block a user