moby/cli/compose/convert
Sebastiaan van Stijn 34889e579f
fix conversion of anonymous volumes in compose-file
the `convertVolumeToMount()` function did not take
anonymous volumes into account when converting
volume specifications to bind-mounts.

this resulted in the conversion to try to
look up an empty "source" volume, which
lead to an error;

    undefined volume:

this patch distinguishes "anonymous"
volumes from bind-mounts and named-volumes,
and skips further processing if no source
is defined (i.e. the volume is "anonymous").

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-12-18 16:50:32 +01:00
..
compose.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
compose_test.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
service.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
service_test.go Move pkg to cli/compose/convert 2016-12-16 12:27:31 -05:00
volume.go fix conversion of anonymous volumes in compose-file 2016-12-18 16:50:32 +01:00
volume_test.go fix conversion of anonymous volumes in compose-file 2016-12-18 16:50:32 +01:00