mirror of
https://github.com/containers/podman.git
synced 2025-09-21 03:35:06 +08:00

implement a new command `podman generate spec` which can formulate a json specgen to be consumed by both the pod and container creation API. supported flags are --verbose (default true) print output to the terminal --compact print the json output in a single line format to be piped to the API --filename put the output in a file --clone rename the pod/ctr in the spec so it won't conflict w/ an existing entity Signed-off-by: Charlie Doern <cdoern@redhat.com>
23 lines
1.2 KiB
Markdown
23 lines
1.2 KiB
Markdown
% podman-generate(1)
|
|
|
|
## NAME
|
|
podman\-generate - Generate structured data based on containers, pods or volumes
|
|
|
|
## SYNOPSIS
|
|
**podman generate** *subcommand*
|
|
|
|
## DESCRIPTION
|
|
The generate command will create structured output (like YAML) based on a container, pod or volume.
|
|
|
|
## COMMANDS
|
|
|
|
| Command | Man Page | Description |
|
|
|---------|------------------------------------------------------------|-------------------------------------------------------------------------------------|
|
|
| kube | [podman-generate-kube(1)](podman-generate-kube.1.md) | Generate Kubernetes YAML based on containers, pods or volumes. |
|
|
| spec | [podman-generate-spec(1)](podman-generate-spec.1.md) | Generate Specgen JSON based on containers or pods. |
|
|
| systemd | [podman-generate-systemd(1)](podman-generate-systemd.1.md) | Generate systemd unit file(s) for a container or pod. |
|
|
|
|
|
|
## SEE ALSO
|
|
**[podman(1)](podman.1.md)**, **[podman-pod(1)](podman-pod.1.md)**, **[podman-container(1)](podman-container.1.md)**
|