Files
podman/docs/source/markdown/podman-generate.1.md
Charlie Doern 842c6c7c67 podman generate spec
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>
2022-08-04 13:59:58 -04:00

1.2 KiB

% 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) Generate Kubernetes YAML based on containers, pods or volumes.
spec podman-generate-spec(1) Generate Specgen JSON based on containers or pods.
systemd podman-generate-systemd(1) Generate systemd unit file(s) for a container or pod.

SEE ALSO

podman(1), podman-pod(1), podman-container(1)