Skip to content
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 Desktop on macOS Mojave does not like localhost in port mapping #57

Open
ebegoli opened this issue Jul 16, 2019 · 0 comments
Open

Comments

@ebegoli
Copy link

ebegoli commented Jul 16, 2019

In the readme file, the example for how to run prosody with all ports mapped states the following command:

docker run -d \ -p 5222:5222 \ -p 5269:5269 \ -p localhost:5347:5347 \ -e LOCAL=romeo \ -e DOMAIN=shakespeare.lit \ -e PASSWORD=juliet4ever \ -v /data/prosody/configuration:/etc/prosody \ -v /logs/prosody:/var/log/prosody \ -v /data/prosody/modules:/usr/lib/prosody-modules \ prosody/prosody:0.9

Running this on Docker Desktop Version 2.0.0.3 (31259) on macOS Mojave results in a message:

docker: invalid publish opts format (should be name=value but got '5222:5222').
See 'docker run --help'.

This is Docker's standard message when something does not work with container to host port mapping. I examined the issue, and tried to edit every line in the example, and when I removed the localhost, prosody launch worked:

docker run -d \ -p 5222:5222 \ -p 5269:5269 \ -p 5347:5347 \ -e LOCAL=romeo \ -e DOMAIN=shakespeare.lit \ -e PASSWORD=juliet4ever \ -v /data/prosody/configuration:/etc/prosody \ -v /logs/prosody:/var/log/prosody \ -v /data/prosody/modules:/usr/lib/prosody-modules \ prosody/prosody:0.9

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

No branches or pull requests

1 participant