Merge pull request #2754 from aanand/upgrading-improvements

Improvements to upgrade guide and script
This commit is contained in:
Aanand Prasad 2016-01-27 13:48:23 +00:00
commit 8c250e220c
2 changed files with 127 additions and 32 deletions

View file

@ -941,6 +941,27 @@ It's more complicated if you're using particular configuration features:
net: "container:cont-name" -> network_mode: "container:cont-name"
net: "container:abc12345" -> network_mode: "container:abc12345"
- `volumes` with named volumes: these must now be explicitly declared in a
top-level `volumes` section of your Compose file. If a service mounts a
named volume called `data`, you must declare a `data` volume in your
top-level `volumes` section. The whole file might look like this:
version: 2
services:
db:
image: postgres
volumes:
- data:/var/lib/postgresql/data
volumes:
data: {}
By default, Compose creates a volume whose name is prefixed with your
project name. If you want it to just be called `data`, declared it as
external:
volumes:
data:
external: true
## Variable substitution