stenote / docker-lemp Goto Github PK
View Code? Open in Web Editor NEWnginx + mysql 5.7 + php7-fpm in docker container. [DEPRECATED]
Home Page: https://registry.hub.docker.com/u/stenote/docker-lemp/
nginx + mysql 5.7 + php7-fpm in docker container. [DEPRECATED]
Home Page: https://registry.hub.docker.com/u/stenote/docker-lemp/
mysql server dont work inside your container, when im try to run it over ssh i see: starting mysql server failed
issue from Docker Hub
Hello I pull your image. but run "docker run -d --name=lemp
-v /path/to/www/:/var/www/
-v /path/to/mysql:/var/lib/mysql
-p port_of_nginx:80
stenote/docker-lemp:latest"
this command return
docker: Invalid hostPort: port_of_nginx.
Hello.
It appears that your container is exiting with code 1.
Any idea why?
Thanks
Hello There!
Thanks for the nice build. If I pull it, it works like a charm. 👍
However, I want to refresh it to PHP 5.6, so I wanted to build the image myself with the help of your README. I've added the following between line 6 and 7:
apt-get install -y software-properties-common &&
add-apt-repository ppa:ondrej/php5-5.6 && \
These make the build fail. No matter, let's try to build it the way you ment it. Then it errors me with the COPY part. When I comment it out it works again. Builds the image.
OK, let's run it. Doesn't work, sais something about the entrypoint.... Must be an adhoc error, let's run it again. It runs, but the mysql fails to work just like here:
fredericlb/docker-phabricator#1
Can you help me hoe to upgrade your image with php 5.6?
Hey there! I get an error when I try to spin up a container, the php-fpm bin path seems to be incorrect:
...
2016-05-23 15:16:47,348 INFO spawnerr: can't find command '/usr/sbin/php5-fpm'
...
2016-05-23 15:16:53,588 INFO gave up: php5-fpm entered FATAL state, too many start retries too quickly
Do you have any suggestions? :)
I get an error
INFO exited: mysqld (exit status 0; not expected)
2017-10-25 11:00:29,642 INFO gave up: mysqld entered FATAL state, too many start retries too quickly
1)Building
sudo docker build -t some-name .
----OK
2)Starting
sudo docker run -it some-name /bin/bash
sudo: unable to resolve host andrey-lenovo
2017-08-16 10:57:57,717 CRIT Supervisor running as root (no user in config file)
2017-08-16 10:57:57,717 WARN Included extra file "/etc/supervisor/conf.d/mysql.conf" during parsing
2017-08-16 10:57:57,717 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2017-08-16 10:57:57,717 WARN Included extra file "/etc/supervisor/conf.d/php-fpm.conf" during parsing
2017-08-16 10:57:57,733 INFO RPC interface 'supervisor' initialized
2017-08-16 10:57:57,733 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2017-08-16 10:57:57,734 INFO supervisord started with pid 1
2017-08-16 10:57:58,737 INFO spawned: 'nginx' with pid 10
2017-08-16 10:57:58,741 INFO spawned: 'php-fpm' with pid 11
2017-08-16 10:57:58,744 INFO spawned: 'mysql' with pid 12
2017-08-16 10:57:59,912 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-16 10:57:59,912 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-16 10:57:59,912 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-16 10:58:00,011 INFO exited: mysql (exit status 0; expected)
2017-08-16 10:58:01,013 INFO spawned: 'mysql' with pid 333
2017-08-16 10:58:01,285 INFO exited: mysql (exit status 0; not expected)
2017-08-16 10:58:02,287 INFO spawned: 'mysql' with pid 646
2017-08-16 10:58:02,549 INFO exited: mysql (exit status 0; not expected)
2017-08-16 10:58:04,554 INFO spawned: 'mysql' with pid 959
2017-08-16 10:58:04,824 INFO exited: mysql (exit status 0; not expected)
2017-08-16 10:58:07,830 INFO spawned: 'mysql' with pid 1272
2017-08-16 10:58:08,112 INFO exited: mysql (exit status 0; not expected)
2017-08-16 10:58:09,113 INFO gave up: mysql entered FATAL state, too many start retries too quickly
删除 openssh-server
增加 -v参数
mysql密码为空
hey @stenote , can you add hls rtmp support. To make it more complete
2016-08-16 08:49:34 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
2016-08-16 08:49:34 [ERROR] The data directory needs to be specified.
Why we add a new sources.list
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.