How to run Jenkins using Docker?


How to Install Jenkins Image in Docker ?

how to install jenkins on docker container ?

Installing Jenkins

By this command jenkins image will be downloaded and jenkins container will run

docker run jenkins

But after running the jenkins container you will notice that you cannot access it outside that container. Now question arises how to access it from outside the container.
We need to mention the inside port to the outside port

docker run -p 8080:8080 jenkins

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.