作者:欢姨oi | 来源:互联网 | 2023-08-20 11:18
https:hub.docker.com_jenkins环境搭建#启动jenkinsdockerrun-d-p8080:8080-p50000:50000--add-host-vv
https://hub.docker.com/_/jenkins/
环境搭建
# 启动 jenkins
docker run -d -p 8080:8080 -p 50000:50000 --add-host -v /var/jenkins:/var/jenkins_home --name jenkins jenkins:2.60.3
- jenkins 更换源
docker 镜像制作过程中更换源,可参考下文:
https://segmentfault.com/q/1010000007151917/a-1020000007188147
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
安装 dotnet core sdk 2.0.2
docker exec -u 0 -it jenkins bash 以 root 用户登录