# 查看远程镜像
docker search jenkins
# 拉取镜像
docker pull jenkins/jenkins
# 创建容器
docker run -d -u root -p 8080:8080 -p 50000:50000 --name jenkins -v ~/jenkins_home:/var/jenkins_home -v /etc/localtime:/etc/localtime jenkins/jenkins
# 查看密码
# 进入容器
docker exec -it jenkins bash
# 查看命令
cat /var/jenkins_home/secrets/initialAdminPassword
# 退出容器
exit
标签:50000,容器,创建,jenkins,var,home,docker From: https://www.cnblogs.com/niunai/p/17338450.html