I have a cloud based Linux system, where I decided to run Docker Jenkins as a background daemon process using the -d option like below:
docker run --name MOHTASHIM_JENKINS -dti -p 8088:8080 -p 50005:50000 -v /tmp:/tmp jenkins bash
4fedd113b63af90618ac79bb3427c9271a782b219c8fc94a7410ae7576549959
Below command shows that the Jenkins docker container is running fine.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4fedd113b63a jenkins "/bin/tini -- /usr/lo" 9 seconds ago Up 7 seconds 0.0.0.0:8088->8080/tcp, 0.0.0.0:50005->50000/tcp MOHTASHIM_JENKINS
4fedd113b63af90618ac79bb3427c9271a782b219c8fc94a7410ae7576549959
The problem is that I’m still not able to get the Jenkins admin console from a remote Windows browser using the conatiners ip address or fqdn.
http://:8088
or
http://:8088
Both the above URLs fails and do not show the Jenkins admin page.
This is how i pulled the jenkins image: docker pull jenkinsci/jenkins
Can you please suggest ?