Mac安装docker、pull加速、启动docker
命令:
brew install --cask --appdir=/Applications docker
配置加速器:
1、启动docker客户端
ps:可以不登陆,直接配置
2、配置engine
{ "experimental": false, "features": { "buildkit": true }, "registry-mirrors": [ "https://yxzrazem.mirror.aliyuncs.com" ] }
启动docker
docker run -d -uroot -p 9095:8080 -p 50000:50000 --name jenkins -v /Users/***/Documents/jenkins:/var/jenkins_home -v /etc/localtime:/etc/localtime jenkins/jenkins
查看首次登录的jenkins密码:
docker logs jenkins
然后浏览器访问:
http://localhost:9095
密码:上面图中的字符串
进入jenkins容器
docker exec -it jenkins bash