docker_practice/podman/README.md
Kang HuaiShuai 9f0b2c725f
Add podman
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
2019-12-31 20:53:51 +08:00

24 lines
511 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# podman
[`podman`](https://github.com/containers/libpod) 是一个无守护程序与 docker 命令兼容的下一代 Linux 容器工具。
## 安装
```bash
$ sudo yum -y install podman
```
## 使用
`podman` docker 命令完全兼容只需将 `docker` 替换为 `podman` 即可例如运行一个容器
```bash
# $ docker run -d -p 80:80 nginx:alpine
$ podman run -d -p 80:80 nginx:alpine
```
## 参考
* https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/