mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +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>
1.2 KiB
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. |