-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
want ports long syntax support species IP address like short syntax #6753
Comments
Hi @Sherlock-Holo, Thanks for the report. You are right that you currently cannot do this with the long port format. A couple of things raised by @thaJeztah about this:
|
The long syntax can use extension-fields directly. x-config:
- &publish-port "127.0.0.1:80"
...
ports:
- target: 80
published: *publish-port Although Swarm or Kubernetes don't support, but short syntax was also. It's not a problem~ |
There's a tracking issue for features that are not currently supported for swarm-mode / orchestrated environments here: moby/moby#25303 And two issues about supporting
Yes, so apart from the above, this would also need some design choices, with things to consider about:
Using an extension field ( |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
I write a docker-compose.yml and use ports with long syntax to expose services, like
when I run
docker-compose config
it will report Error while attempting to convert service.dns.ports.published to appropriate type: "127.0.0.1:53" is not a valid integerIf long syntax support sepices IP address, it will be great
The text was updated successfully, but these errors were encountered: