Sign inSign up

wenshunbiao/php

By wenshunbiao

Updated over 3 years ago

Image
0

1.1K

wenshunbiao/php repository overview

CoreOS Docker

让你更便捷、系统化的使用Docker
建议使用 Centos7 系统,因为要借助 Systemd 服务管理

Step.1 install docker

请自行安装Docker
参考教程:https://www.cnblogs.com/yufeng218/p/8370670.html

Step.2 install coreos docker

请使用root用户安装,忽略一些常规性的报错输出

useradd -d /home/core -m core && cd /home/core
git clone https://github.com/wenshunbiao/docker.git
chmod -R 777 docker/shell && export PATH="/home/core/docker/shell:$PATH"
install_coreos

安装到此结束,以下是一些使用示例或提示。

install service

在 /home/core/docker 预先封装了大量服务,文件夹名称即是服务名称
所有服务都安装在 /home/core/data 目录,需要修改服务的配置请在这里修改,改完使用 s service_name 重启生效

i php                           # install php server
i nginx                         # install nginx share
i redis                         # install redis server

start/restart service

s php                           # start/restart php server
s nginx                         # start/restart nginx share
s redis                         # start/restart redis server

command list

更多快捷命令请查看 /home/core/docker/shell

dps                             #show all docker services
dpp                             #show all docker service mapping ports
i service_name                  #install service
s service_name                  #start/restart service service
p service_name                  #stop service service
d service_name                  #enter service container, if the error is reported, try `d service_name sh`
j service_name                  #view service history log
jf service_name                 #scroll to view service log
st service_name                 #status systemctl service

致谢

感谢 JetBrains 对开源项目的支持与帮助

avatar

License

The CoreOS Docker is open-sourced software licensed under the MIT license.

Tag summary

Content type

Image

Digest

Size

66.8 MB

Last updated

over 5 years ago

docker pull wenshunbiao/php