- Docker must be installed,better docker-compose(guide provided)
- Config the docker,add insecure-registries(if using
docker pull
command from private registry) - Can access eniq
- Can access kget database
- Download the php-apache image(php-apache.tar) first. Excute
docker pull 47.99.129.128:5000/php-apache/genius
- or download the php-apache.tar(PW: ggjx) here:
Then upload the image to server,executedocker load < php-apache.tar
chmod +x ./bin/*.sh
Then execute ./bin/start.sh
View "http//localhost:80/public/index.php" to see the page
- centos6 install docker-io(PW: rty3), centos7 install docker-ce(PW:x4r8)
- using
--replacefiles
while installing,if packages conflict,remove them from the install files.
e.g.:rpm -ivh *.rpm --replacefiles
e.g.: default docker path:/data/gdata/docker
, insecure-registries: 47.99.129.128:5000
-
centos6 in this way:
vi /etc/sysconfig/docker other_args="--graph=/data/gdata/docker --insecure-registry=47.99.129.128:5000"
-
centos7 in this way:
vim /etc/docker/daemon.json
If the file doesn't exist,create it.{ "graph": "/data/gdata/docker", "insecure-registries": [ "47.99.129.128:5000" ] }
-
set up docker group, add the user who needs to use docker to the docker group
group add docker usermod - a G docker $user
-
start docker, enable auto start
systemctl enable docker systemctl start docker
-
transfer the image(.tar) to the server
-
load the image to docker
docker load < xxxx.tar
Download docker-compose(PW: eew5) first.
Put it under /usr/local/bin
,and set its permissions appropriately.