-
Notifications
You must be signed in to change notification settings - Fork 123
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
docker_container cannot use --publish and --publish-all at the same time #8
Comments
Files identified in the description: If these files are inaccurate, please update the |
The documentation for the module says It's definitely something that would be nice if changed, though. It would be a breaking change though. |
#60 deprecates the current behavior. From community.docker 2.0.0 on, the new behavior will either that this is no longer allowed, or that it is properly handled. Which behavior will be the case depends on whether someone will properly implement this. (I don't want to promise now that I will do that :) ) |
SUMMARY
When
--publish
and--publish-all
are used at the same time, other ports except the specified port can be randomly allocated.Here, port 80 of Nginx will be randomly allocated.
docker_container
doesn't have this.ISSUE TYPE
COMPONENT NAME
docker_container
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS
MacOS / Darwin w022581902977m 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
Docker
STEPS TO REPRODUCE
EXPECTED RESULTS
Except for the specified port, the remaining ports are randomly assigned by docker.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: