Podman usage: Difference between revisions

From wikinotes
Line 28: Line 28:
Images
Images
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
podman images # list images
podman images       # list images
podman rmi ${IMAGE}  # remove image
</syntaxhighlight>
</syntaxhighlight>



Revision as of 13:33, 10 April 2023

podman images contain recipes for building a container.
Instructions are typically outlined in a Containerfile.

Documentation

man Containerfile https://man.archlinux.org/man/community/containers-common/Containerfile.5.en
man podman-build https://man.archlinux.org/man/community/podman/podman-build.1.en
man podman-pull https://man.archlinux.org/man/community/podman/podman-pull.1.en
man podman-search https://man.archlinux.org/man/community/podman/podman-search.1.en

Managing Images

Repositories

podman search ${search}                           # search for an image
podman search ${search} --filter=is-official         # search for an official image
podman pull docker.io/mysql/mysql-server:latest   # download an image

Images

podman images        # list images
podman rmi ${IMAGE}  # remove image

Containerfiles

podman build .                 # build image from 'Containerfile' in current dir
podman build -f Containerfile  # specify 'Containerfile' to build