spiegel_podman/pkg/specgen/generate
Valentin Rothberg c5f0a5d788 volumes: be more tolerant and fix infinite loop
Make Podman more tolerant when parsing image volumes during container
creation and further fix an infinite loop when checking them.

Consider `VOLUME ['/etc/foo', '/etc/bar']` in a Containerfile.  While
it looks correct to the human eye, the single quotes are wrong and yield
the two volumes to be `[/etc/foo,` and `/etc/bar]` in Podman and Docker.

When running the container, it'll create a directory `bar]` in `/etc`
and a directory `[` in `/` with two subdirectories `etc/foo,`.  This
behavior is surprising to me but how Docker behaves.  We may improve on
that in the future.  Note that the correct way to syntax for volumes in
a Containerfile is `VOLUME /A /B /C` or `VOLUME ["/A", "/B", "/C"]`;
single quotes are not supported.

This change restores this behavior without breaking container creation
or ending up in an infinite loop.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2014149
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-10-28 16:37:33 +02:00
..
kube Add support to play kube for --log-opt 2021-10-25 11:40:42 -04:00
config_linux.go Pod Device Support 2021-09-20 23:22: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 faster image inspection 2021-10-08 14:47:33 +02:00
container_create.go Allow API to specify size and inode quota 2021-10-18 14:44:10 -04:00
namespaces.go InfraContainer Rework 2021-08-26 16:05:16 -04:00
oci.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
pod_create.go pod create: remove need for pause image 2021-10-26 13:51:45 +02:00
ports.go Drop OCICNI dependency 2021-09-15 20:00:28 +02:00
security.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
storage.go volumes: be more tolerant and fix infinite loop 2021-10-28 16:37:33 +02:00
validate.go Allow a value of -1 to set unlimited pids limit 2021-09-29 16:22:55 -04:00