podman import
all
Import a tarball and save it as a filesystem image. See also: `podman export`, `podman save`.
More info →Options (2)
-m, --messagebooleanImport a tarball and add a commit message
Example:
podman import {{[-m|--message]}} "{{commit_message}}" {{path/to/tarball.tar}} {{image:tag}}-c, --changebooleanImport 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:tagImport a tarball from a URL
podman import https://example.com/image.tar image:tagImport a tarball and add a commit message
podman import [-m|--message] "commit_message" path/to/tarball.tar image:tagImport a tarball and set a default command (required for running the container)
podman import [-c|--change] CMD=/bin/bash path/to/tarball.tar image:tagmade by @shridhargupta | data from tldr-pages