1 Star 0 Fork 1

dockers / lnmp-swoole

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

docker 的安装

apt-get -y install docker-engine

docker-1.12.3 configure with systemd

cp /lib/systemd/system/docker.service /etc/systemd/systemd/docker.service
# 使用阿里云的镜像加速器
sed -i -e '/#DOCKER_OPTS/a\DOCKER_OPTS="--registry-mirror=https://f9x0jdul.mirror.aliyuncs.com"'    /etc/default/docker
# 引入DOCKER_OPTS环境变量
sed -i -e '/ExecStart/i\EnvironmentFile=-/etc/default/docker'    /etc/systemd/system/docker.service
sed  -i -e 's/ExecStart=\/usr\/bin\/dockerd -H fd:\/\//ExecStart=\/usr\/bin\/dockerd -H fd:\/\/ $DOCKER_OPTS/g'  /etc/systemd/system/docker.service

build lnmp 镜像

docker build -t lnmp --no-cache .

运行容器

docker run -dit --privileged --name lnmp-swoole -p 80:80  -v /var/www:/var/www lnmp sbin/init

管理容器

docker exec -it lnmp-swoole bash

Empty file

About

fedora25+php7+nginx+swoole expand collapse
Docker
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Docker
1
https://gitee.com/dockers/lnmp-swoole.git
git@gitee.com:dockers/lnmp-swoole.git
dockers
lnmp-swoole
lnmp-swoole
master

Search