docker search csphere
[root@localhost ~]# docker search csphere
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker.io docker.io/csphere/csphere docker container management platform 7
docker.io docker.io/xcy0609/csphere 1
docker.io docker.io/csphere/jenkins 0
docker.io docker.io/csphere/qingcloud-docker-network Docker Network and IPAM plugin for Qingclo... 0
docker.io docker.io/csphere/squid 0
docker.io docker.io/micha09/docker-csphere Docker Image for cSphere Web CMS 0 [OK]
docker.io docker.io/tsing/qingcloud-lb Qingcloud load balance updater for csphere... 0 [OK]
docker images
[root@localhost yum.repos.d]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
csphere/mysql 5.5 1212e642112e 14 hours ago 739.3 MB
csphere/php-fpm 5.4 897d9b88966a 14 hours ago 701.9 MB
csphere/centos 7.1 8f067fc9016e 15 hours ago 603.9 MB
learn/ping latest 9412c9464710 16 hours ago 139.5 MB
daocloud.io/library/centos latest a8493f5f50ff 5 days ago 192.5 MB
docker.io/django latest eb40dcf64078 3 months ago 436 MB
docker.io/centos centos7.1.1503 285396d0a019 7 months ago 212.1 MB
docker.io/csphere/csphere latest 2266d9e47034 16 months ago 97.95 MB
127.0.0.1:5000/csphere/csphere 0.11.2 3468c34fa83b 16 months ago 97.95 MB
docker.io/registry 2.1.1 52bb991b482e 17 months ago 220.1 MB
docker.io/learn/tutorial latest a7876479f1aa 4 years ago 128 MB
确保Docker的版本要大于1.6 这个是官方的要求
[root@localhost yum.repos.d]# cat docker.repo
[dockerrepo]
name=DockerRepository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
生成容器
[root@localhost yum.repos.d]# docker run -d --restart=always -p 1106:80 -e ROLE=controller -l CSPHERE_ROLE=controller -v /data/csphere:/data:rw --name=csphereDemo1 docker.io/csphere/csphere:latest
$DATA_DIR:/data:rw
查看是否成功
[root@localhost yum.repos.d]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1f4fcd24e05c docker.io/csphere/csphere:latest "/bin/csphere-init -i" 5 seconds ago Up 4 seconds 8086/tcp, 27017/tcp, 0.0.0.0:1106->80/tcp csphereDemo csphere
6c8dc0281a08 registry:2.1.1 "/bin/registry /etc/d" 3 hours ago Up 3 hours 0.0.0.0:5000->5000/tcp registry
bb3bddd38d8d csphere/mysql:5.5 "/scripts/start" 14 hours ago Up 14 hours 22/tcp, 0.0.0.0:3306->3306/tcp kickass_bardeen
672759fc8fb3 csphere/php-fpm:5.4 "/usr/bin/supervisord" 14 hours ago Up 14 hours 22/tcp, 443/tcp, 0.0.0.0:8080->80/tcp website
9dc53dc98943 csphere/centos:7.1 "/usr/bin/supervisord" 15 hours ago Up 15 hours 0.0.0.0:2222->22/tcp base
efb4c7eb173c learn/tutorial "apt-get install -y p" 16 hours ago Exited (0) 16 hours ago sharp_kowalevski
b095b689b909 learn/tutorial "echo Hello" 16 hours ago Exited (0) 16 hours ago
声明一下
由于官方给的安装脚本不能运行,我这边在测试的时候不知道为什么容器的数量一直显示为0,还请大神告知!!!我个人猜测可能是没有读取到我
docker容器存放的目录,官方具体的实现方法这个确实不知道,如果有哪位知道的可以相互交流一下!!