commands.sh

podman import

all

Import a tarball and save it as a filesystem image. See also: `podman export`, `podman save`.

More info →

Options (2)

-m, --messageboolean

Import a tarball and add a commit message

Example: podman import {{[-m|--message]}} "{{commit_message}}" {{path/to/tarball.tar}} {{image:tag}}
-c, --changeboolean

Import a tarball and set a default command (required for running the container)

Example: podman import {{[-c|--change]}} CMD={{/bin/bash}} {{path/to/tarball.tar}} {{image:tag}}

Examples (4)

Import a tarball from a local file and create an image

podman import path/to/tarball.tar image:tag

Import a tarball from a URL

podman import https://example.com/image.tar image:tag

Import a tarball and add a commit message

podman import [-m|--message] "commit_message" path/to/tarball.tar image:tag

Import a tarball and set a default command (required for running the container)

podman import [-c|--change] CMD=/bin/bash path/to/tarball.tar image:tag
made by @shridhargupta | data from tldr-pages