Docker 常用容器

portainer

docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock -v ~/portainer_data:/data
docker.io/portainer/portainer

oracle 12c

docker run -d -p 8080:8080 -p 5500:5500 -p 1521:1521 -v /home/gugu/oradata:/u01/app/oracle --name oracle-base mritschel/oracle12cr2_base

查看日志:

docker logs oracle-base

进入系统:

docker exec -it oracle-base /bin/bash

GitLab

docker run --detach \
--hostname 192.168.1.10 \
--publish 444:443 --publish 93:80 --publish 23:22 \
--name gitlab \
--restart always \
--volume /home/gitlab/config:/etc/gitlab \
--volume /home/gitlab/logs:/var/log/gitlab \
--volume /home/gitlab/data:/var/opt/gitlab \
--volume /etc/localtime:/etc/localtime \
gitlab/gitlab-ce:latest

Jenkins

docker run -itd -p 9090:8080 -p 50000:50000 \
--name jenkins \
--restart always \
--privileged=true \
--volume /home/jenkins:/var/jenkins_home \
jenkins

你可能感兴趣的:(Docker 常用容器)