Giter Site home page Giter Site logo

docker-lnmp's Introduction

Hi there 👋

docker-lnmp's People

Contributors

micooz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-lnmp's Issues

Windows 10, but getting pywintypes.error.

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "compose\cli\main.py", line 65, in main
  File "compose\cli\main.py", line 117, in perform_command
  File "compose\cli\main.py", line 849, in up
  File "compose\project.py", line 372, in up
  File "compose\project.py", line 539, in warn_for_swarm_mode
  File "site-packages\docker\api\daemon.py", line 33, in info
  File "site-packages\docker\utils\decorators.py", line 47, in inner
  File "site-packages\docker\client.py", line 139, in _get
  File "site-packages\requests\sessions.py", line 488, in get
  File "site-packages\requests\sessions.py", line 475, in request
  File "site-packages\requests\sessions.py", line 596, in send
  File "site-packages\requests\adapters.py", line 423, in send
  File "site-packages\requests\packages\urllib3\connectionpool.py", line 595, in urlopen
  File "site-packages\requests\packages\urllib3\connectionpool.py", line 363, in _make_request
  File "httplib.py", line 1057, in request
  File "httplib.py", line 1097, in _send_request
  File "httplib.py", line 1053, in endheaders
  File "httplib.py", line 897, in _send_output
  File "httplib.py", line 859, in send
  File "site-packages\docker\transport\npipeconn.py", line 31, in connect
  File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped
  File "site-packages\docker\transport\npipesocket.py", line 49, in connect
pywintypes.error: (2, 'WaitNamedPipe', '\xcf\xb5\xcd\xb3\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xce\xc4\xbc\xfe\xa1\xa3')
docker-compose returned -1

Just trying things out on Windows 10, but getting this error.

PHP Startup: Unable to load dynamic library...

in my case , I wanna use PDO to connect mysql, so I uncomment line extension=php_pdo_mysql.dll in php-fpm/php.ini-production , and add line && docker-php-ext-install pdo_mysql to php-fpm/Dockerfile, then excute command sudo docker-compose up, but it does't work still, so what wrong with this ?

thanks for any helpful message!

Why use sudo?

Hi, I noticed the following command is prefixed with sudo. It seems not good to use root privilege. Actually in the docker container, you can get root access, so no need to give it host's root privilege. Agree?

sudo docker-compose up

I can't do it every time I get here

system: Linux iZ2zecxzfewu856w8sll6dZ 4.4.0-63-generic #84-Ubuntu SMP Wed Feb 1 17:20:32 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


mysql_1 | 2017-06-27T02:13:47.728172Z 0 [Warning] CA certificate ca.pem is self signed.
mysql_1 | 2017-06-27T02:13:47.729753Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
mysql_1 | 2017-06-27T02:13:47.731036Z 0 [Note] IPv6 is available.
mysql_1 | 2017-06-27T02:13:47.731070Z 0 [Note] - '::' resolves to '::';
mysql_1 | 2017-06-27T02:13:47.731102Z 0 [Note] Server socket created on IP: '::'.
mysql_1 | 2017-06-27T02:13:47.737963Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
mysql_1 | 2017-06-27T02:13:47.738023Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
mysql_1 | 2017-06-27T02:13:47.738056Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
mysql_1 | 2017-06-27T02:13:47.738091Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
mysql_1 | 2017-06-27T02:13:47.741300Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
mysql_1 | 2017-06-27T02:13:47.749567Z 0 [Note] Event Scheduler: Loaded 0 events
mysql_1 | 2017-06-27T02:13:47.757729Z 0 [Note] mysqld: ready for connections.
mysql_1 | Version: '5.7.18' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
mysql_1 | 2017-06-27T02:13:47.757769Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
mysql_1 | 2017-06-27T02:13:47.757782Z 0 [Note] Beginning of list of non-natively partitioned tables
mysql_1 | 2017-06-27T02:13:47.777006Z 0 [Note] End of list of non-natively partitioned tables
fpm_1 | [27-Jun-2017 02:13:47] NOTICE: fpm is running, pid 1
fpm_1 | [27-Jun-2017 02:13:47] NOTICE: ready to handle connections
nginx_1 | 2017/06/27 02:13:47 [emerg] 1#1: PEM_read_bio_X509_AUX("/etc/nginx/server.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)
nginx_1 | nginx: [emerg] PEM_read_bio_X509_AUX("/etc/nginx/server.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)

ctrl+c

Stopping dockerlnmp_fpm_1 ... done
Stopping dockerlnmp_mysql_1 ... done
Exception in thread Thread-10 (most likely raised during interpreter shutdown):Exception in thread Thread-7 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "threading.py", line 801, in __bootstrap_inner
File "threading.py", line 754, in run
File "compose/cli/log_printer.py", line 156, in tail_container_logs
File "compose/cli/log_printer.py", line 187, in wait_on_exit
File "compose/container.py", line 239, in wait
File "site-packages/docker/utils/decorators.py", line 21, in wrapped
File "site-packages/docker/api/container.py", line 1242, in wait
File "site-packages/docker/utils/decorators.py", line 47, in inner
File "site-packages/docker/api/client.py", line 179, in _post
File "site-packages/requests/sessions.py", line 522, in post

File "site-packages/requests/sessions.py", line 475, in requestTraceback (most recent call last):

File "site-packages/requests/sessions.py", line 596, in send File "threading.py", line 801, in __bootstrap_inner

File "threading.py", line 754, in run File "site-packages/requests/adapters.py", line 472, in send

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error' File "compose/cli/log_printer.py", line 203, in watch_events
File "compose/project.py", line 370, in events

File "compose/container.py", line 42, in from_id
File "site-packages/docker/utils/decorators.py", line 21, in wrapped
File "site-packages/docker/api/container.py", line 750, in inspect_container
File "site-packages/docker/utils/decorators.py", line 47, in inner
File "site-packages/docker/api/client.py", line 183, in _get
File "site-packages/requests/sessions.py", line 488, in get
File "site-packages/requests/sessions.py", line 475, in request
File "site-packages/requests/sessions.py", line 596, in send
File "site-packages/requests/adapters.py", line 472, in send
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'error'

mysql is not working

got the following logs:

mysql_1 | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
mysql_1 | *** Running /etc/my_init.d/99_mysql_setup.sh...
mysql_1 | *** Running /etc/rc.local...
mysql_1 | *** Booting runit daemon...
mysql_1 | *** Runit started as PID 8
mysql_1 | 160427 02:42:36 mysqld_safe Logging to '/var/log/mysql/error.log'.
mysql_1 | 160427 02:42:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
mysql_1 | 160427 02:42:36 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

and the last 3 lines is looping forever.

looking at mysql folder, it's empty. are there config files missing?

nginx exit

[root@no190 ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS                     NAMES
6fc0ffa83aec        nginx:latest        "nginx -g 'daemon ..."   2 minutes ago       Exited (1) 2 minutes ago                             dockerlnmp_nginx_1
e87e76166a69        dockerlnmp_fpm      "php-fpm"                2 minutes ago       Up 2 minutes               0.0.0.0:32770->9000/tcp   dockerlnmp_fpm_1
72611d77af2a        mysql:latest        "docker-entrypoint..."   2 minutes ago       Up 2 minutes               0.0.0.0:3306->3306/tcp    dockerlnmp_mysql_1
[root@no190 docker-lnmp]# docker logs -f 6fc0ffa83aec 
2017/10/13 08:51:49 [emerg] 1#1: PEM_read_bio_X509_AUX("/etc/nginx/server.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERT)
nginx: [emerg] PEM_read_bio_X509_AUX("/etc/nginx/server.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.