Skip to content

Commit

Permalink
Address comments from Daniel, move the schema change to v3.4.
Browse files Browse the repository at this point in the history
Signed-off-by: Liping Xue <lipingxue@gmail.com>
  • Loading branch information
lipingxue committed Jul 19, 2017
1 parent be06d60 commit 7a63629
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/compose/loader/full-example.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.3"
version: "3.4"

services:
foo:
Expand Down
6 changes: 5 additions & 1 deletion cli/compose/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ func LoadVolumes(source map[string]interface{}) (map[string]types.VolumeConfig,
volume.External.Name = name
volumes[name] = volume
} else {
logrus.Warnf("invalid to specify name for external volume: %s", volume.External.Name)
logrus.Warnf("volume %s: volume.external.name is deprecated, please use volume.name", name)

if volume.Name != "" {
return nil, errors.Errorf("volume %s: volume.external.name and volume.name conflict, only use volume.name", name)
}
}
}
}
Expand Down
Loading

0 comments on commit 7a63629

Please sign in to comment.