1.Install Docker CE to Centos7
[root@zoo1 ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 [root@zoo1 ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo [root@zoo1 ~]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn docker-ce-stable | 2.9 kB 00:00:00 docker-ce-stable/x86_64/primary_db | 13 kB 00:00:01 repo id repo name status base/7/x86_64 CentOS-7 - Base 9,911 docker-ce-stable/x86_64 Docker CE Stable - x86_64 15 extras/7/x86_64 CentOS-7 - Extras 303 updates/7/x86_64 CentOS-7 - Updates 632 repolist: 10,861 [root@zoo1 ~]# [root@zoo1 ~]# yum list |grep docker-ce docker-ce.x86_64 18.03.1.ce-1.el7.centos docker-ce-stable docker-ce-selinux.noarch 17.03.2.ce-1.el7.centos docker-ce-stable [root@zoo1 ~]# yum -y install docker-ce [root@zoo1 ~]# systemctl start docker
2. Downloading and running Jenkins in Docker
A docker image to give BlueOcean a try
- run as
docker run -p 8080:8080 jenkinsci/blueocean
- note the admin password dumped on log
- open a browser on http://localhost:8080
- run the initial setup wizard. Choose "recommended plugins"
- browse to http://localhost:8080/blue
This image has a tag for every release of blue ocean, to run the latest, ensure you run docker pull jenkinsci/blueocean
from time to time.
Refer:
https://hub.docker.com/r/jenkinsci/blueocean/
https://jenkins.io/doc/book/installing/#installing-docker
https://docs.docker.com/install/linux/docker-ce/centos/