Skip to content

Documentation: Include notes on mapping ports#104

Merged
aanand merged 1 commit intodocker:masterfrom
Gazler:documentation/port-strings
Mar 3, 2014
Merged

Documentation: Include notes on mapping ports#104
aanand merged 1 commit intodocker:masterfrom
Gazler:documentation/port-strings

Conversation

@Gazler
Copy link

@Gazler Gazler commented Feb 20, 2014

When mapping ports as strings there is an issue with the way YAML parses
numbers in the format "xx:yy" where yy is less than 60 - this issue is
now included in the documentation.

This fixes #103

@aanand
Copy link

aanand commented Feb 20, 2014

I wonder if it'd be better to just have port and volume entries in strings everywhere in the docs, to encourage people to do it all the time.

Otherwise it's not clear from just looking at the YAML why some are and some aren't, and if/when you should do it yourself. As we all know, hardly anyone reads the docs in the first place.

@aanand
Copy link

aanand commented Feb 20, 2014

(to be clear: we absolutely should still include your note.)

@Gazler
Copy link
Author

Gazler commented Feb 20, 2014

@aanand I wasn't sure whether to update all of the ports in the documentation. Personally I prefer the consistency of all the port mappings being strings and if that is the agreement then I'll update it.

@Gazler Gazler closed this Feb 20, 2014
@Gazler Gazler reopened this Feb 20, 2014
@bfirsh
Copy link

bfirsh commented Feb 26, 2014

👍 quotes everywhere with a short note explaining that they need to be in quotes.

When mapping ports as strings there is an issue with the way YAML parses
numbers in the format "xx:yy" where yy is less than 60 - this issue is
now included in the documentation.

This fixes docker#103
@Gazler
Copy link
Author

Gazler commented Mar 3, 2014

I have updated all the yaml files I found in the documentation to include this change. The reason is explained in the readme as well as the doc page for the yaml.

aanand added a commit that referenced this pull request Mar 3, 2014
Documentation: Include notes on mapping ports
@aanand aanand merged commit e6016bd into docker:master Mar 3, 2014
@bfirsh
Copy link

bfirsh commented Mar 3, 2014

Thanks @Gazler!

yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Documentation: Include notes on mapping ports
Signed-off-by: Yuval Kohavi <[email protected]>
xulike666 pushed a commit to xulike666/compose that referenced this pull request Jan 19, 2017
Reject duplicate keys on the notifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YAML time issue

3 participants