Files
podman/pkg
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
..
2020-12-22 13:34:31 -05:00
2021-09-20 15:07:41 +02:00
2021-05-06 11:51:15 +02:00
2021-07-27 15:32:23 +02:00
2021-07-27 16:10:44 +02:00
2019-07-23 15:43:40 -04:00
2021-02-22 09:03:51 +01:00
2021-02-11 23:01:56 +01:00
2021-03-15 14:01:52 +01:00
2021-02-22 09:03:51 +01:00
2021-10-06 11:19:32 -04:00
2021-02-22 09:03:51 +01:00
2020-12-22 13:34:31 -05:00
2021-10-24 22:27:39 +02:00
2020-01-13 14:27:02 +01:00