简体   繁体   中英

Jenkins in docker centos container

Is it possible to install Jenkins in docker Linux containers and use it. Please specify the step by step process

I created centos container and installed Jenkins it. but don't know how to use it.

You should expose port 8080 to the host-machine and then you can browse jenkin by pointing your browser to

Exposing a port should have be done while creating a container and map accordingly.
like-

$ docker run -p 48080:8080 --name container-name your-centos-image-name:tag

您可以使用官方的詹金斯形象

docker run -p 8080:8080 -p 50000:50000 jenkins

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM