Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service 'mysql' failed to build: Please provide a source image with from prior to commit #1098

Closed
hanachan1026 opened this issue Aug 17, 2017 · 12 comments
Labels

Comments

@hanachan1026
Copy link

Info:

  • Docker version ($ docker --version): 17.03.1-ce, build c6d412e
  • Laradock commit ($ git rev-parse HEAD): 38fb49b
  • System info (Mac, PC, Linux): macOS Sierra 10.12.4

Issue:

I think I followed the instruction correctly. But I get
Service 'mysql' failed to build: Please provide a source image with from prior to commit


Expected behavior:

Php-fpm, nginx, mysql and laradock-workspace should work and i see Laravel main view on myapp.dev:8888 in my browser


Reproduce:

git clone https://github.com/Laradock/laradock.git
cd laradock
docker-compose up -d workspace
docker exec -it laradock_workspace_1 /bin/bash
composer create-project laravel/laravel myapp
exit
docker-compose stop
...changing docker-compose.yml and nginx configuration files but no touching mysql settings
docker-compose up -d nginx mysql phpmyadmin


@springjk
Copy link

Update your docker version to 17.06-ce.

@crosspluser
Copy link

springjs is right.
The Document of How to Install Docker CE:
https://fabianlee.org/2017/03/07/docker-installing-docker-ce-on-ubuntu-14-04-and-16-04/

@psgganesh
Copy link

Sometimes, networking is the root cause, two things

  1. Allow docker to be able to make requests to hub.docker or other repo - from the front-end - generally shows up during installation
  2. Create a valid login on hub.docker and enter the same on CLI by using
docker login

Adding to it, if you are still finding issues on mysql 8.0, please consider using the stable build mysql 5.7 by changing the values in below files

..../laradock/mysql/Dockerfile
.../laradock/env-example

Actually if all works, please consider to close this issue.

@atefBB
Copy link
Contributor

atefBB commented Feb 13, 2018

@psgganesh
I change MySQL version to 5.7 but the issue still occurs!
Any ideas?

@thiagorb
Copy link

Had this issue on Docker version 17.12.0-ce, build c97c6d6, running on macOS. Solved by setting the version manually to 5.7 on mysql/Dockerfile and removing the line ARG MYSQL_VERSION=latest.

@mhightower
Copy link

Had this issue just come up. This Dockerfile was working and build images images a few days ago not sure what changed. I have:

 ARG TIMEZONE=America/Chicago
 ARG APACHE_DOCUMENT_ROOT=/usr/local/apache2/htdocs
 FROM composer:1.5.1 AS composer
 ...

@lhq0826
Copy link

lhq0826 commented Apr 2, 2018

@thiagorb

Service 'mysql' failed to build: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory"

win 10

@bestlong
Copy link
Member

bestlong commented Apr 3, 2018

sometime, is networking problem.

try run docker pull mysql:latest or docker pull mysql:5.7 to direct download image

@xulei131401
Copy link

Service 'mysql' failed to build: Please provide a source image with from prior to commit

@lhq0826
Copy link

lhq0826 commented Apr 20, 2018

After the docker I upgrade to the latest version 18.03.0-ce , solved the problem

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants