mirror of https://github.com/docker/docs.git
Extension fields are only supported from 3.4
Use the minimum supported version in the example
This commit is contained in:
parent
3e6c8f2b78
commit
80f1bdceeb
|
@ -3,7 +3,7 @@ special fields can be of any format as long as they are located at the root of
|
||||||
your Compose file and their name start with the `x-` character sequence.
|
your Compose file and their name start with the `x-` character sequence.
|
||||||
|
|
||||||
```none
|
```none
|
||||||
version: '2.1'
|
version: '3.4'
|
||||||
x-custom:
|
x-custom:
|
||||||
items:
|
items:
|
||||||
- a
|
- a
|
||||||
|
@ -29,7 +29,7 @@ logging:
|
||||||
You may write your Compose file as follows:
|
You may write your Compose file as follows:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
version: '2.1'
|
version: '3.4'
|
||||||
x-logging:
|
x-logging:
|
||||||
&default-logging
|
&default-logging
|
||||||
options:
|
options:
|
||||||
|
@ -50,7 +50,7 @@ It is also possible to partially override values in extension fields using
|
||||||
the [YAML merge type](http://yaml.org/type/merge.html). For example:
|
the [YAML merge type](http://yaml.org/type/merge.html). For example:
|
||||||
|
|
||||||
```none
|
```none
|
||||||
version: '2.1'
|
version: '3.4'
|
||||||
x-volumes:
|
x-volumes:
|
||||||
&default-volume
|
&default-volume
|
||||||
driver: foobar-storage
|
driver: foobar-storage
|
||||||
|
|
Loading…
Reference in New Issue