最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - quarkus not starting on port 80 - Stack Overflow

programmeradmin2浏览0评论

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
Add a comment  | 

3 Answers 3

Reset to default 0

which 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.

发布评论

评论列表(0)

  1. 暂无评论