Parcourir la source

type mismatch checking tmpfs conflicting options

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof il y a 4 ans
Parent
commit
577bee955b
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      pkg/compose/create.go

+ 2 - 2
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)
 	}