podman/pkg/specgen/generate
Adrian Reber 1ac9198d75
Allow changing of port forward rules on restore
Restored containers, until now, had the same port mappings as the
original started container. This commit adds the parameter '--publish'
to 'podman container restore' with the same semantic as during
create/run.

With this change it is possible to create a copy from a container with a
'--publish' rule and replace the original '--publish' setting with a new
one.

 # podman run -p 2345:8080 container
 # podman container checkpoint -l --export=dump.tar
 # podman container restore -p 5432:8080 --import=dump.tar

The restored container will now listen on localhost:5432 instead of
localhost:2345 as the original created container.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-06-04 13:29:02 +02:00
..
kube Handle image user and exposed ports in podman play kube 2021-05-26 16:39:04 -04:00
config_linux.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
config_linux_cgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_nocgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_test.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
container.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
container_create.go Support uid,gid,mode options for secrets 2021-05-17 14:35:55 -04:00
namespaces.go Add the option of Rootless CNI networking by default 2021-05-26 15:03:30 -04:00
oci.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
pod_create.go Allow changing of port forward rules on restore 2021-06-04 13:29:02 +02:00
ports.go Allow changing of port forward rules on restore 2021-06-04 13:29:02 +02:00
security.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
storage.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
validate.go bump go module to v3 2021-02-22 09:03:51 +01:00