1podman-generate-spec(1)     General Commands Manual    podman-generate-spec(1)
2
3
4

NAME

6       podman-generate-spec  -  Generate  Specgen  JSON based on containers or
7       pods
8
9

SYNOPSIS

11       podman generate spec [options] *container | pod
12
13

DESCRIPTION

15       podman generate spec generates SpecGen JSON from Podman Containers  and
16       Pods. This JSON can be printed to a file, directly to the command line,
17       or both.
18
19
20       This JSON can then be used as input for the  Podman  API,  specifically
21       for  Podman  container  and  pod creation. Specgen is Podman's internal
22       structure for formulating new container-related entities.
23
24

OPTIONS

26   --compact, -c
27       Print the output in a compact, one line format.  This  is  useful  when
28       piping the data to the Podman API
29
30
31   --filename, -f=filename
32       Output to the given file.
33
34
35   --name, -n
36       Rename  the pod or container, so that it does not conflict with the ex‐
37       isting entity. This is helpful when the JSON is to be used  before  the
38       source pod or container is deleted.
39
40
41
42                                                       podman-generate-spec(1)
Impressum