docs icon indicating copy to clipboard operation
docs copied to clipboard

Different compose file versions are confusing in Version 3 reference

Open olegmayko opened this issue 9 years ago • 6 comments

File: compose/networking.md

Hi , I think it is a bit confusing that there are fragments of compose-file named version 2 or version 2.1 across the page named " Compose file version 3 reference" . then there are pieces without any references to a version https://docs.docker.com/compose/compose-file/#networks The confusion is rather is it valid example for version 3 or version 2.1 , especially if you ran in error which hard to understand and little experience with working with docker-compose.

thank you

olegmayko avatar Feb 17 '17 07:02 olegmayko

Hackathon Hints

  • Please ignore the comments ^^ regarding the Compose file (https://docs.docker.com/compose/compose-file/#networks), which is up-to-date. (Any references to version 2 are in that file are valid as they describe features available in "version 2 and up.)

  • Please update the code / config file examples in the file https://docs.docker.com/compose/networking/ from version 2 to version 3. You will need to reference Compose file v3: https://docs.docker.com/compose/compose-file/, and make sure the examples map to version 3 formats and features.

londoncalling avatar Apr 11 '17 19:04 londoncalling

@londoncalling preference for 3 or 3.1?

bdwill avatar Apr 17 '17 20:04 bdwill

@bdwill In terms of referencing a version, I suppose preference for simply 3 or just say 3.x. (The only exception would be if you use an example that includes a 3.1 only feature, then you would have to explicitly call out 3.1)

londoncalling avatar Apr 18 '17 02:04 londoncalling

Closed via #2866

mdlinville avatar Apr 18 '17 20:04 mdlinville

@shin- if you have any time in the future, would it be possible for you to review the changes on this PR to make sure that the examples fit v3 file format? (in terms of indent levels, keywords that got changed, and so on)

At a glance, it all looks right to me, but I'd appreciate a second check.

londoncalling avatar Apr 22 '17 01:04 londoncalling

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 06 '23 03:03 docker-robott