snippetbashTip
podman import — Import a tarball and save it as a filesystem image. See also: `podman export`, `podman save`. More i
Viewed 0 times
importtarballcommandandsaveclipodman importfilesystem
Problem
How to use the
podman import command: Import a tarball and save it as a filesystem image. See also: podman export, podman save. More information: <https://docs.podman.io/en/latest/markdown/podman-import.1.html>.Solution
podman import — Import a tarball and save it as a filesystem image. See also: podman export, podman save. More information: <https://docs.podman.io/en/latest/markdown/podman-import.1.html>.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}}Code Snippets
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}}Context
tldr-pages: common/podman import
Revisions (0)
No revisions yet.