I get the below error:
2025-02-10 07:27:15,592 ERROR [io.qua.run.Application] (main) Port 80 seems to be in use by another process. Quarkus may already be running or the port is used by another application.
but port 80 is free. I'm checked in multiple times.
This is my application.proerties:
%prod.quarkus.http.port=80
%prod.quarkus.http.host=0.0.0.0
quarkus.http.access-log.enabled=true
this is how i run it
docker run --pull always --network host -e QUARKUS_PROFILE=prod vishwa86/user-service:latest
I get the below error:
2025-02-10 07:27:15,592 ERROR [io.qua.run.Application] (main) Port 80 seems to be in use by another process. Quarkus may already be running or the port is used by another application.
but port 80 is free. I'm checked in multiple times.
This is my application.proerties:
%prod.quarkus.http.port=80
%prod.quarkus.http.host=0.0.0.0
quarkus.http.access-log.enabled=true
this is how i run it
docker run --pull always --network host -e QUARKUS_PROFILE=prod vishwa86/user-service:latest
Share
asked 5 hours ago
user1807948user1807948
4437 silver badges14 bronze badges
1
- When I attempt to run on ports below 1024, the application fails to start, but ports above 1024 (like 8082 or 8090) work fine. – user1807948 Commented 3 hours ago
3 Answers
Reset to default 0which OS you are using? if you are using Ubuntu try the following cmd
sudo netstat -tulpn | grep 80
otherwise map the container port to a free port (example 8888) by adding
-p 8888:80
Running this worked for me:
net.ipv4.ip_unprivileged_port_start = 0
You must add port forwardings
docker run -p 80:8080
Where the first 80 is the local port and the second 8080 is the container port.