hamptonpaulk / php7-dockerized Goto Github PK
View Code? Open in Web Editor NEWSimple PHP7 Docker & Compose Environment
Simple PHP7 Docker & Compose Environment
docker-compose up command always fails with below error
-- https://www.dotdeb.org/dotdeb.gpg
Resolving www.dotdeb.org (www.dotdeb.org)... 195.154.242.153, 2001:bc8:21eb:100::1
Connecting to www.dotdeb.org (www.dotdeb.org)|195.154.242.153|:443... E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
connected.
HTTP request sent, awaiting response... 200 OK
Length: 5299 (5.2K) [application/octet-stream]
Saving to: 'STDOUT'
0K 0% 0.00 =0s
Cannot write to '-' (Broken pipe).
ERROR: Service 'php' failed to build: The command '/bin/sh -c wget https://www.dotdeb.org/dotdeb.gpg -O - | apt-key add -' returned a non-zero code: 255
Hi,
could you please help me with this error. I am on Windows 10:
ERROR: for php7dockerized_web_1 Cannot start service web: oci runtime error: container_linux.go:262: starting container process caused "process_linux.go:339: container init caused "rootfs_linux.go:57: mounting \"/d/Docker/php7-dockerized/conf/nginx.conf\" to rootfs \"/mnt/sda1/var/lib/docker/aufs/mnt/7b47e5295709138754ddd0f16cd200d797230f5b44fd58515f1d110b89d35645\" at \"/mnt/sda1/var/lib/docker/aufs/mnt/7b47e5295709138754ddd0f16cd200d797230f5b44fd58515f1d110b89d35645/etc/nginx/nginx.conf\" caused \"not a directory\"""
: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
The URL to the post on Medium about this project is incorrect. It should be: https://medium.com/code-school/setting-up-a-local-php7-development-environment-with-docker-compose-e9531baed291
Hey, when I do docker-compose up, the cmd stays at:
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20160303/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
It does nothing after this, it just stays there.
error like this:
Creating php7-dockerized_code_1 ... error
Creating php7-dockerized_mysql_1 ...
Creating php7-dockerized_mysql_1 ... error
ERROR: for php7-dockerized_mysql_1 Cannot create container for service mysql: b'Drive has not been shared'
ERROR: for code Cannot create container for service code: b'Drive has not been shared'
ERROR: for mysql Cannot create container for service mysql: b'Drive has not been shared'
ERROR: Encountered errors while bringing up the project.
ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: The specified module could not be found.
I try my db-connect.php
connect_error) { die("Connection failed: " . $conn->connect_error); } and I get ( ! ) Warning: mysqli_connect(): (HY000/2002): No such file or directory in /var/www/default/db-connect.php on line 8 Call Stack # Time Memory Function Location 1 0.0041 361864 {main}( ) .../db-connect.php:0 2 0.0042 361864 mysqli_connect ( ) .../db-connect.php:8A 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.