daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ERROR: for indicaaquicombrold_mysqld_1  Cannot start service mysqld: oci runtime error: container_linux.go:247: starting container process caused "exec: "/docker-entrypoint.sh": permission denied"
  2.  
  3.  
  4. ERROR: for mysqld  Cannot start service mysqld: oci runtime error: container_linux.go:247: starting container process caused "exec: "/docker-entrypoint.sh": permission denied"
  5.  
  6. ERROR: Encountered errors while bringing up the project.
  7.    
  8. version: '3'
  9.  
  10. services:
  11.   php:
  12.     build:
  13.       context: ./docker/php
  14.     image: indicaaqui.com.br:tag
  15.     volumes:
  16.       - ./src:/var/www/html/
  17.       - ./config/apache-config.conf:/etc/apache2/sites-enabled/000-default.conf
  18.     ports:
  19.       - "80:80"
  20.       - "443:443"
  21.  
  22.   mysqld:
  23.     build:
  24.       context: ./docker/mysql
  25.     environment:
  26.       - MYSQL_DATABASE=db_indicaaqui
  27.       - MYSQL_USER=indicaqui
  28.       - MYSQL_PASSWORD=secret
  29.       - MYSQL_ROOT_PASSWORD=docker      
  30.     volumes:
  31.       - ./config/docker-entrypoint.sh:/docker-entrypoint.sh
  32.       - ./database/db_indicaaqui.sql:/docker-entrypoint-initdb.d/db_indicaaqui.sql
  33.    
  34. FROM php:5.6-apache
  35.  
  36. MAINTAINER Limup <limup@outlook.com>
  37.  
  38. CMD [ "php" ]
  39.  
  40. RUN docker-php-ext-install pdo_mysql
  41.  
  42. # Enable apache mods.
  43. # RUN a2enmod php5.6
  44. RUN a2enmod rewrite
  45.  
  46.  
  47. # Expose apache.
  48. EXPOSE 80
  49. EXPOSE 443
  50.  
  51. # Use the default production configuration
  52. # RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
  53. RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
  54.  
  55. # Override with custom opcache settings
  56. # COPY ./../../config/php.ini $PHP_INI_DIR/conf.d/
  57.  
  58. # Manually set up the apache environment variables
  59.  ENV APACHE_RUN_USER www-data
  60.  ENV APACHE_RUN_GROUP www-data
  61.  ENV APACHE_LOG_DIR /var/log/apache2
  62.  ENV APACHE_LOCK_DIR /var/lock/apache2
  63.  ENV APACHE_PID_FILE /var/run/apache2.pid
  64.  
  65. # Update the PHP.ini file, enable <? ?> tags and quieten logging.
  66. RUN sed -i "s/short_open_tag = Off/short_open_tag = On/" "$PHP_INI_DIR/php.ini"
  67. RUN sed -i "s/error_reporting = .*$/error_reporting = E_ERROR | E_WARNING | E_PARSE/" "$PHP_INI_DIR/php.ini"
  68.  
  69. RUN a2dissite 000-default.conf
  70. RUN chmod -R 777 /etc/apache2/sites-enabled/
  71.  
  72. WORKDIR /var/www/html/
  73.  
  74. # By default start up apache in the foreground, override with /bin/bash for interative.
  75. CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
  76.    
  77. FROM mariadb:latest
  78.  
  79. RUN chmod -R 777 /docker-entrypoint.sh
  80. ENTRYPOINT ["/docker-entrypoint.sh"]
  81.  
  82. EXPOSE 3306
  83. CMD ["mysqld"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top