knowledge/technology/tools/Podman.md
2023-12-19 02:53:37 +01:00

835 B
Raw Permalink Blame History

website obj repo
https://podman.io application https://github.com/containers/podman

Podman

Podman is a rootless container engine.

Usage

Podmans command line interface is almost identical to Dockers. For reference see Docker.

podman port

List port mappings for the container or look up the public-facing port that is NAT-ed to the private-port.

# 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]

$ 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