From 577bee955b16bcf32d381ca0e4bb85e1f31ae9eb Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 9 Nov 2021 08:05:12 +0100 Subject: [PATCH] type mismatch checking tmpfs conflicting options Signed-off-by: Nicolas De Loof --- pkg/compose/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index d458fc03..a3e31c00 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -952,8 +952,8 @@ func buildMountOptions(volume types.ServiceVolumeConfig) (*mount.BindOptions, *m if volume.Bind != nil { logrus.Warnf("mount of type `tmpfs` should not define `bind` option") } - if volume.Tmpfs != nil { - logrus.Warnf("mount of type `tmpfs` should not define `volumeZ` option") + if volume.Volume != nil { + logrus.Warnf("mount of type `tmpfs` should not define `volume` option") } return nil, nil, buildTmpfsOptions(volume.Tmpfs) }