mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
volumes: Add volume import to allow importing contents on tar into volume
Following feature makes sure that users can load contents of external tarball into the podman volumes. Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
@ -35,4 +35,4 @@ $ podman volume export myvol --output myvol.tar
|
||||
```
|
||||
|
||||
## SEE ALSO
|
||||
podman-volume(1)
|
||||
podman-volume(1), podman-volume-import(1)
|
||||
|
35
docs/source/markdown/podman-volume-import.1.md
Normal file
35
docs/source/markdown/podman-volume-import.1.md
Normal file
@ -0,0 +1,35 @@
|
||||
% podman-volume-import(1)
|
||||
|
||||
## NAME
|
||||
podman\-volume\-import - Import tarball contents into a podman volume
|
||||
|
||||
## SYNOPSIS
|
||||
**podman volume import** *volume* [*source*]
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
**podman volume import** imports the contents of a tarball into the podman volume's mount point.
|
||||
**podman volume import** can consume piped input when using `-` as source path.
|
||||
|
||||
Note: Following command is not supported by podman-remote.
|
||||
|
||||
**podman volume import VOLUME [SOURCE]**
|
||||
|
||||
#### **--help**
|
||||
|
||||
Print usage statement
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
```
|
||||
$ gunzip -c hellow.tar.gz | podman volume import myvol -
|
||||
```
|
||||
```
|
||||
$ podman volume import myvol test.tar
|
||||
```
|
||||
```
|
||||
$ podman volume export myvol | podman volume import oldmyvol -
|
||||
```
|
||||
|
||||
## SEE ALSO
|
||||
podman-volume(1), podman-volume-export(1)
|
@ -16,6 +16,7 @@ podman volume is a set of subcommands that manage volumes.
|
||||
| create | [podman-volume-create(1)](podman-volume-create.1.md) | Create a new volume. |
|
||||
| exists | [podman-volume-exists(1)](podman-volume-exists.1.md) | Check if the given volume exists. |
|
||||
| export | [podman-volume-export(1)](podman-volume-export.1.md) | Exports volume to external tar. |
|
||||
| import | [podman-volume-import(1)](podman-volume-import.1.md) | Import tarball contents into a podman volume. |
|
||||
| inspect | [podman-volume-inspect(1)](podman-volume-inspect.1.md) | Get detailed information on one or more volumes. |
|
||||
| ls | [podman-volume-ls(1)](podman-volume-ls.1.md) | List all the available volumes. |
|
||||
| prune | [podman-volume-prune(1)](podman-volume-prune.1.md) | Remove all unused volumes. |
|
||||
|
Reference in New Issue
Block a user