From 9f0b2c725f01deee81d44cc1b27816e4d237465e Mon Sep 17 00:00:00 2001 From: Kang HuaiShuai Date: Tue, 31 Dec 2019 20:48:52 +0800 Subject: [PATCH] Add podman Signed-off-by: Kang HuaiShuai --- .vuepress/config.js | 1 + SUMMARY.md | 1 + podman/README.md | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 podman/README.md diff --git a/.vuepress/config.js b/.vuepress/config.js index 625705b..781afbf 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -358,6 +358,7 @@ module.exports = { 'opensource/linuxkit', ], }, + 'podman/', 'appendix/faq/', { title: "热门镜像介绍", diff --git a/SUMMARY.md b/SUMMARY.md index 07697d1..d3288af 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -146,6 +146,7 @@ * [VS Code](IDE/vsCode.md) * [Docker 开源项目](opensource/README.md) * [LinuxKit](opensource/linuxkit.md) +* [podman -- 下一代 Linux 容器工具](podman/README.md) * [附录](appendix/README.md) * [附录一:常见问题总结](appendix/faq/README.md) * [附录二:热门镜像介绍](appendix/repo/README.md) diff --git a/podman/README.md b/podman/README.md new file mode 100644 index 0000000..b242152 --- /dev/null +++ b/podman/README.md @@ -0,0 +1,23 @@ +# 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/