mzazon / php-apache-mysql-containerized

A brief demo of containerizing php apache and mysql with Docker using some best practices.
197 stars 174 forks source link

Errors after executing docker-compose up -d command (windows/Docker CE) #1

Open gkimpson opened 6 years ago

gkimpson commented 6 years ago

This was working for me yesterday but then I've upgraded to the latest version of Docker and now it seemingly fails with the message below once I run docker-compose up -d

Docker CE : 18.06.1-ce-win73 (19507) (Running Windows 10 Pro) Channel : stable Compose : 1.22.0 Machine : 0.15.0 Notary : 0.6.1 Credential Helpers : 0.6.0 Kubernetes : 1.10.3

php-apache-mysql-containerized_mysql_1 is up-to-date
php-apache-mysql-containerized_php_1 is up-to-date
Starting php-apache-mysql-containerized_apache_1 ... error
ERROR: for php-apache-mysql-containerized_apache_1  Cannot start service apache: driver failed programming external connectivity on endpoint php-apache-mysql-containerized_apache_1 (2e04f997df1445f9305ec47b8b2dc10e9fcf4387a342837a7193023d018df862): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8080:tcp:172.19.0.2:80: input/output error
ERROR: for apache  Cannot start service apache: driver failed programming external connectivity on endpoint php-apache-mysql-containerized_apache_1 (2e04f997df1445f9305ec47b8b2dc10e9fcf4387a342837a7193023d018df862): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8080:tcp:172.19.0.2:80: input/output error
ERROR: Encountered errors while bringing up the project.`
gkimpson commented 6 years ago

In case someone has the same issue - remove all containers & restart docker seems to work (seems to be a common issue from the docker forums)

mzazon commented 6 years ago

Perhaps I need to include a cleanup script, I will look into it thanks for reporting the issue and the workaround!

JustAWebDev commented 5 years ago

So you are using windows? I'm wondering if I can run this in windows as development environment and then move something similar for production into a Linux environment without many problems. Thoughts?