knowledge/technology/tools/Podman.md

41 lines
835 B
Markdown
Raw Permalink Normal View History

2023-12-04 10:02:23 +00:00
---
2023-12-17 06:50:25 +00:00
website: https://podman.io
2023-12-04 10:02:23 +00:00
obj: application
repo: https://github.com/containers/podman
---
# Podman
Podman is a rootless container engine.
2023-12-17 06:50:25 +00:00
## Usage
Podmans command line interface is almost identical to Dockers. For reference see [Docker](Docker.md).
2023-12-04 10:02:23 +00:00
2023-12-17 06:50:25 +00:00
### `podman port`
List port mappings for the _container_ or look up the public-facing port that is NAT-ed to the _private-port_.
2023-12-04 10:02:23 +00:00
2023-12-17 06:50:25 +00:00
```shell
# podman port b4d2f054
80/udp -> 0.0.0.0:44327
80/tcp -> 0.0.0.0:44327
```
### `podman diff`
Inspect changes on a container or images filesystem.
Usage: `podman diff [options] container|image [container|image]`
```shell
$ podman diff --format json myimage
{
"changed": [
"/usr",
"/usr/local",
"/usr/local/bin"
],
"added": [
"/usr/local/bin/docker-entrypoint.sh"
]
}
$ podman diff container1 image1
A /test
```