Docker仓库

一十一

一十一

2018-04-13 09:21:25

镜像列表:

http://59.61.79.157:5000/v2/_catalog

镜像版本:

http://59.61.79.157:5000/v2/<images>/tags/list

拉取方式:

docker pull 59.61.79.157:5000/<name>

上传镜像:(非管理员勿操作)

docker tag <images> 59.61.79.157:5000/<name>:latest

docker push 59.61.79.157:5000/<name>

删除镜像:(非管理员勿操作)

docker exec registry  rm -rf /var/lib/registry/docker/registry/v2/repositories/<镜像名>

docker exec registry bin/registry garbage-collect /etc/docker/registry/config.yml

详情: #centos7.2 images not ifconfig commod   #yum -y install net-tools

序号

镜像名称

版本

拉取命令

启动命令

序号

镜像名称

版本

拉取命令

启动命令

1
Registry
latest
docker pull 59.61.79.157:5000/registry

docker run -d -p 5000:5000 -v /registry:/var/lib/registry

--name registry --restart=always 59.61.79.157:5000/registry

2Centos

7.2.1511

7.3.1611

7.4.1708

docker pull 59.61.79.157:5000/centos:7.2

docker pull 59.61.79.157:5000/centos:7.3

docker pull 59.61.79.157:5000/centos:7.4

docker run -it 59.61.79.157:5000/centos:7.2 bash
docker run -it 59.61.79.157:5000/centos:7.3 bash
docker run -it 59.61.79.157:5000/centos:7.4 bash
3Nginxlatestdocker pull 59.61.79.157:5000/nginx

docker run -d -p 80:80 -v /home/nginx.conf:/etc/nginx/nginx.conf

--name nginx 59.61.79.157:5000/nginx

4MySQL5.7docker pull 59.61.79.157:5000/mysql:5.7

 docker run -d --name mysql -v /opt/data/mysql/:/var/lib/mysql 

-p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 59.61.79.157:5000/mysql:5.7

5redislatestdocker pull 59.61.79.157:5000/redis:latestdocker run -d -p 26379:22 -p 6379:6379 --name redis-magor redis
6jenkinslatestdocker pull 59.61.79.157:5000/jenkins:latest

docker run --name myjenkins -v /home/jenkins:/var/jenkins_home 

-p 8282:8080 -d 59.61.79.157:5000/jenkins

7

nodejs

latestdocker pull 59.61.79.157:5000/nodejs:latest

docker run -p 9160:8080 -d 59.61.79.157:5000/nodejs

8

mongo

latestdocker pull 59.61.79.157:5000/mongo:latest

主节点:
docker run -d -p 7017:2717 --name mongo-major --restart=always

59.61.79.157:5000/mongo -port 2717 –master
从节点:
docker run -d -p 7018:2718 --name mongo-slave --restart=always

59.61.79.157:5000/mongo --port 2718 -slave -source

9elasticsearchlatestdocker pull 59.61.79.157:5000/elasticsearch:latest

docker run -d -p 9200:9200 -p 9300:9300 --name es 59.61.79.157:5000/elasticsearch

10rabbitmqlatestdocker pull 59.61.79.157:5000/rabbitmq:latest

docker run -d --name rabbitmq --publish 5671:5671 --publish 5672:5672

--publish 4369:4369 --publish 25672:25672 --publish 15671:15671

--publish 15672:15672 59.61.79.157:5000/rabbitmq

11kibanalatestdocker pull 59.61.79.157:5000/kibana:latest

 docker run --name mykibana  -p 5601:5601 -d 59.61.79.157:5000/kibana

12jdk1.8docker pull 59.61.79.157:5000/jdk:1.8docker run -d --name jdk1.8 59.61.79.157:5000/jdk:1.8
13
rancher
v1.6.11-rc3docker pull 59.61.79.157:5000/rancher:v1.6.11-rc3  

docker run -d --restart always --name rancher-server -p 8080:8080

59.61.79.157:5000/rancher:v1.6.11-rc3 && docker logs -f rancher-server

14Pythonlatestdocker pull 59.61.79.157:5000/pythondocker run -d -p 1019:1019 --name python 59.61.79.157:5000/python
15ela-sqllatestdocker pull 59.61.79.157:5000/ela/


TestOps中文社区公众号
 
 微信   :  wonter
 QQ群 :  632418478
用户评论(0)
意见反馈
举报