Introduction
this is part 23 from the journey it's a long journey(360 day) so go please check previous parts , and if you need to walk in the journey with me please make sure to follow because I may post more than once in 1 Day but surely I will post daily at least one 😍.
And I will cover lot of tools as we move on.
before compose
before docker-compose exist there was a tool called fig , it was an open source tool , after success she made docker decided to integrate it with docker as docker-compose name.
Versioning
There are currently three versions of the Compose file format:
. Version 1, the legacy format. This is specified by omitting a version key at the root of the YAML.
because it's legacy so it's not recommended to use it.
. Version 2.x. This is specified with a version: '2' or version: '2.1', etc., entry at the root of the YAML.
. Version 3.x, the latest and recommended version, designed to be cross-compatible between Compose and the Docker Engine’s swarm mode. This is specified with a version: '3' or version: '3.1', etc., entry at the root of the YAML.
every version need to be compatible with an docker engine release , this is a table shown it :
Compose file format | Docker Engine |
---|---|
1 | 1.9.0+ |
2.0 | 1.10.0+ |
2.1 | 1.12.0+ |
2.2, 3.0, 3.1, 3.2 | 1.13.0+ |
2.3, 3.3, 3.4, 3.5 | 17.06.0+ |
2.4 | 17.12.0+ |
3.6 | 18.02.0+ |
3.7 | 18.06.0+ |
and every version contain new features so it's good to follow up with there github repo
Top comments (0)