Log in to Aliyun Docker Registry:

$sudo docker login –[email protected] registry.cn-qingdao.aliyuncs.com The password is set when you open the namespace.

Pull image from Registry:

$sudo docker pull registry.cn-qingdao.aliyuncs.com/xq/xq-live: [the mirror version number] will mirror pushed to the registry:

$ sudo docker login –[email protected] registry.cn-qingdao.aliyuncs.com $ sudo docker tag [ImageId] Registry.cn-qingdao.aliyuncs.com/xq/xq-live: [the mirror version number] $sudo docker push Registry.cn-qingdao.aliyuncs.com/xq/xq-live: [the mirror version number] [ImageId], [the mirror version number] would you please fill in according to their own image information.

// Check all containers docker ps -a

Docker tag registry.cn-qingdao.aliyuncs.com/xq/xq-live: [the mirror version number] name: tag

Docker run – itd – – the name test – v/Users/kuangzihan: / var/WWW/web – p 80:80 – – restart = always registry.cn-qingdao.aliyuncs.com/xq/xq-live:image

Docker run –name mysql -e MYSQL_ROOT_PASSWORD=123456 -dit -p 3306:3306 — -restart=always mysql

docker exec -it test bash

Apache configuration file CD /etc/httpd/conf vi httpd.conf

<VirtualHost *:80> DocumentRoot /var/www/web/php/ ServerName www.zwbphp.com <Directory “/var/www/web/php”> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all

Vi command

History Displays historical records

// docker command docker rmi delete docker rm -f delete container docker ps check the start container docker ps check all containers docker start container name start container

Mysql -uroot -p