Search code examples
dockerubuntujenkins

Jenkins UI giving error "502 Bad Gateway openresty"


I have a cloud. I restarted my cloud server and I started again my docker containers.

docker ps

All my containers are working excluding Jenkins.

When I checked Jenkins on portainer

portainer

it is looking "running"

but when I want to access my Jenkins UI, I see this error

enter image description here

when I want to access with the IP address and port error is

"Connection Refused"

enter image description here


Solution

  • I changed docker image names and I tried rebuild (docker build -t "imagename"). After that, I tried again "docker compose up -d" it works.

    I hope it helps someone having this problem.