podman-generate-spec(1) General Commands Manual podman-generate-spec(1) (NAME) podman-generate-spec - Specgen JSON (SYNOPSIS) podman generate spec [] | (DESCRIPTION) podman generate spec SpecGen JSON . JSON . JSON API . Specgen . (OPTIONS) --compact, -c . (pipe) API . --filename, -f= . --name, -n . JSON . (EXAMPLES) Specgen JSON : $ podman generate spec container1 { "name": "container1-clone", "command": [ "/bin/sh" ], "env": { "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container": "podman" }, "sdnotifyMode": "container", "pidns": { "nsmode": "default" }, "utsns": { "nsmode": "private" }, "containerCreateCommand": [ "podman", "run", "--name", "container1", "cea2ff433c61" ], "init_container_type": "", "image": "cea2ff433c610f5363017404ce989632e12b953114fefc6f597a58e813c15d61", "ipcns": { "nsmode": "default" }, "shm_size": 65536000, "shm_size_systemd": 0, "selinux_opts": [ "disable" ], "userns": { "nsmode": "default" }, "idmappings": { "HostUIDMapping": true, "HostGIDMapping": true, "UIDMap": null, "GIDMap": null, "AutoUserNs": false, "AutoUserNsOpts": { "Size": 0, "InitialSize": 0, "PasswdFile": "", "GroupFile": "", "AdditionalUIDMappings": null, "AdditionalGIDMappings": null } }, "umask": "0022", "cgroupns": { "nsmode": "default" }, "netns": { "nsmode": "pasta" }, "Networks": null, "use_image_hosts": false, "resource_limits": {} } Specgen JSON ( ): $ podman generate spec --compact container1 {"name":"container1-clone","command":["/bin/sh"],... Specgen JSON : $ podman generate spec --filename output.json container1 output.json $ cat output.json { "name": "container1-clone", "command": [ "/bin/sh" ], "env": { "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "container": "podman" }, "sdnotifyMode": "container", "pidns": { "nsmode": "default" }, "utsns": { "nsmode": "private" }, "containerCreateCommand": [ "podman", "run", "--name", "container1", "cea2ff433c61" ], "init_container_type": "", "image": "cea2ff433c610f5363017404ce989632e12b953114fefc6f597a58e813c15d61", "ipcns": { "nsmode": "default" }, "shm_size": 65536000, "shm_size_systemd": 0, "selinux_opts": [ "disable" ], "userns": { "nsmode": "default" }, "idmappings": { "HostUIDMapping": true, "HostGIDMapping": true, "UIDMap": null, "GIDMap": null, "AutoUserNs": false, "AutoUserNsOpts": { "Size": 0, "InitialSize": 0, "PasswdFile": "", "GroupFile": "", "AdditionalUIDMappings": null, "AdditionalGIDMappings": null } }, "umask": "0022", "cgroupns": { "nsmode": "default" }, "netns": { "nsmode": "pasta" }, "Networks": null, "use_image_hosts": false, "resource_limits": {} } (SEE ALSO) podman(1), podman-generate(1) podman-generate-spec(1)