Public Repository

Last pushed: 19 hours ago
Short Description
ABAOLTP 是基于centos-docker-images+Tengine+Php整合优化的docker镜像
Full Description

ABAOLTP使用帮助

适用于Centos7.3 minimal development tools
关闭了selinux (setenforce 0)
清空了iptables规则

1、配置yum源

[root@abao ~]#cd /etc/yum.repos.d/
[root@abao7 yum.repos.d]# vi /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=http://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=0

2、开启路由转发

[root@abao ~]# echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
[root@abao ~]# sysctl -p

3、安装扩展源

[root@abao ~]# yum -y install epel-release

4、安装docker

[root@abao ~]# yum install iptables-services -y
[root@abao ~]# yum -y install docker-engine
[root@abao ~]# systemctl enable docker
[root@abao ~]# systemctl start docker
5、下载使用ABAOLTP

下载:

[root@abao ~]#docker pull lorock/abaoltp

开启测试:

[root@abao ~]#docker run -itd -p 81:80 lorock/abaoltp /bin/sh -c /usr/local/bin/start.sh

浏览器输入网址:http://www.601849.com:81 即可打开默认网站

生产部署:

a、创建网站根目录
[root@abao ~]#mkdir /www

b、启动实例
[root@abao ~]#docker run -itd --restart=always --name abaoltp -h Abaoltp.local -p 80:80 -v /www:/www/ lorock/abaoltp /bin/sh -c /usr/local/bin/start.sh
浏览器输入网址:http://www.601849.com 即可打您的网站

PS:
敬请关注网络开发运维QQ群:414781593 获取最新信息
参考文档:http://www.xubaojin.com/post/266.html

Docker Pull Command
Owner
lorock

Comments (0)