docker 常用镜像使用

1、jenkins/blueocean

#!/bin/bash

docker run --name jenkins -p 60000:8080 -p 50000:50000 \

--privileged=true \

-v /etc/timezone:/etc/timezone \

-v /etc/localtime:/etc/localtime \

-v /var/run/docker.sock:/var/run/docker.sock \

-v /usr/bin/docker:/usr/bin/docker \

-v /opt/jenkins:/var/jenkins_home \

-d jenkinsci/blueocean


docker run --name test_jenkins -p 8082:8080 -p 50002:50002 --env JENKINS_SLAVE_AGENT_PORT=50002 --env JAVA_OPTS=-Dhudson.model.DirectoryBrowserSupport.CSP="" --env -e JAVA_OPTS=-Duser.timezone=Asia/Shanghai -v /data/jenkinss_test:/var/jenkins_home --restart=always jenkins/jenkins:lts

2、mongodb

#!/bin/bash

docker run --name mongodb  -p 27017:27017 \

--privileged=true \

-v /etc/timezone:/etc/timezone \

-v /etc/localtime:/etc/localtime \

-v /opt/mongodb:/data/db \

-d mongo

3、selenium/hub

docker run -p 5555:4444 -d --name hub selenium/hub

你可能感兴趣的:(docker 常用镜像使用)