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 REST service: failed endpoint connectivity; port already allocated #8

Open
rafael5 opened this issue Sep 16, 2018 · 1 comment

Comments

@rafael5
Copy link

rafael5 commented Sep 16, 2018

The docker build works fine and with no error message: docker build -t rest-adapter-service .

However, running the docker installation fails: docker run -p 8080:8080 rest-adapter-service

The error message is:
docker: Error response from daemon: driver failed programming external connectivity on endpoint hardcore_wozniak (9d9775dd46da1d96edf511fd42399442fa7a7b7dce6076f34ae9e4675dc1b313): Error starting userland proxy: Bind for 0.0.0.0:8080 failed: port is already allocated.
ERRO[0000] error waiting for container: context canceled

System information:
OS: MacOSX HIghSierra 16GB RAM
Docker: v 18.06.1-ce-mac73

=> Can anyone else replicate this error? If so, what is the issue?

@petkivim
Copy link
Contributor

Hi @rafael5

I repeated the same steps (docker build -t rest-adapter-service ., docker run -p 8080:8080 rest-adapter-service) and the container got up and running without problems. Please see my system information below.

System information

  • OS: MacOSX HIghSierra (v10.13.6), 16GB RAM
  • Docker: v18.06.0-ce-mac70 (26399)

Have you checked that you don't have any other containers and/or services running that are using port 8080? The error message you received (Error starting userland proxy: Bind for 0.0.0.0:8080 failed: port is already allocated.) indicates that another service is already using port 8080. Have you tried to start REST Adapter Service using another port, e.g. 8081?

Regards,
Petteri

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

2 participants