网页
综合
更新时间 2026-11-13 17:22:22
Podman
自动蜘蛛
podman.io
正文约 1401 字
For installing or building Podman, please see the installation instructions:
For complete command details and options, review the Podman manpages.
To explore all commands or inspect options for a specific subcommand directly in your terminal:
This sample container will run a basic httpd server that serves its default index page.
Run an Apache HTTP server in detached mode on port 8080:
Because the container is being run in detached mode, represented by the -d in the podman run command, Podman will run the container in the background and print the container ID after it has executed the command. The -t also adds a pseudo-tty to run arbitrary commands in an interactive shell.
Also, we use port forwarding to be able to access the HTTP server. For successful running at least slirp4netns v0.3.0 is needed.
The podman ps command is used to list created and running containers:
If you add -a to the podman ps command, Podman will show all containers (created, exited, running, etc.).
The container is reachable via its mapped port on your local machine:
From another machine, reach it using the host's IP address:
Instead of using curl, you can also point a browser to http://localhost:8080.
Copyright © 2026 Podman Container Tools, a Series of LF Projects, LLC. Built with Docusaurus.
For website terms of use, trademark policy, and other project policies, please see the LF Projects policies page.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。