mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 03:44:40 +00:00
27 lines
821 B
Plaintext
27 lines
821 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|