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

MySQL service not working with docker desktop 2.4.0.0 #2740

Closed
yaquawa opened this issue Oct 14, 2020 · 4 comments
Closed

MySQL service not working with docker desktop 2.4.0.0 #2740

yaquawa opened this issue Oct 14, 2020 · 4 comments

Comments

@yaquawa
Copy link

yaquawa commented Oct 14, 2020

Description:

seems like the mysql service exit with an error.
I found this issue after I updated my docker desktop(mac) to version 2.4.0.0
I've tried rebuild the mysql service, but still not working.

docker-compose up -d mysql nginx workspace

...
...
...

docker-compose exec mysql bash
ERROR: No container found for mysql_1

...
...
...

docker-compose ps
           Name                          Command              State                                                                       Ports                                                                    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
laradock_docker-in-docker_1   dockerd-entrypoint.sh           Up       2375/tcp, 2376/tcp                                                                                                                          
laradock_mysql_1              docker-entrypoint.sh mysqld     Exit 1                                                                                                                                               
laradock_nginx_1              /bin/bash /opt/startup.sh       Up       0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:81->81/tcp                                                                                
laradock_php-fpm_1            docker-php-entrypoint php-fpm   Up       9000/tcp                                                                                                                                    
laradock_workspace_1          /sbin/my_init                   Up       0.0.0.0:2222->22/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:3001->3001/tcp, 0.0.0.0:4200->4200/tcp, 0.0.0.0:8001->8000/tcp, 0.0.0.0:8080->8080/tcp

Expected Behavior:

Context information:

Output of git rev-parse HEAD

89c9cfe09941bead05d63ec3c0fe9b9173ce0526

Output of docker version

Client: Docker Engine - Community
 Cloud integration  0.1.18
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 16:58:31 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:07:04 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose version

docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.1g  21 Apr 2020

System info: Mac, Windows or Linux. Include which disto/version

MacOS 10.15.6

Steps to reproduce the issue:

  1. docker-compose up -d mysql nginx workspace
  2. docker-compose exec mysql bash
@shlk20
Copy link

shlk20 commented Oct 20, 2020

Description:

seems like the mysql service exit with an error.
I found this issue after I updated my docker desktop(mac) to version 2.4.0.0
I've tried rebuild the mysql service, but still not working.

docker-compose up -d mysql nginx workspace

...
...
...

docker-compose exec mysql bash
ERROR: No container found for mysql_1

...
...
...

docker-compose ps
           Name                          Command              State                                                                       Ports                                                                    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
laradock_docker-in-docker_1   dockerd-entrypoint.sh           Up       2375/tcp, 2376/tcp                                                                                                                          
laradock_mysql_1              docker-entrypoint.sh mysqld     Exit 1                                                                                                                                               
laradock_nginx_1              /bin/bash /opt/startup.sh       Up       0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:81->81/tcp                                                                                
laradock_php-fpm_1            docker-php-entrypoint php-fpm   Up       9000/tcp                                                                                                                                    
laradock_workspace_1          /sbin/my_init                   Up       0.0.0.0:2222->22/tcp, 0.0.0.0:3000->3000/tcp, 0.0.0.0:3001->3001/tcp, 0.0.0.0:4200->4200/tcp, 0.0.0.0:8001->8000/tcp, 0.0.0.0:8080->8080/tcp

Expected Behavior:

Context information:

Output of git rev-parse HEAD

89c9cfe09941bead05d63ec3c0fe9b9173ce0526

Output of docker version

Client: Docker Engine - Community
 Cloud integration  0.1.18
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 16:58:31 2020
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:07:04 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker-compose version

docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.1g  21 Apr 2020

System info: Mac, Windows or Linux. Include which disto/version

MacOS 10.15.6

Steps to reproduce the issue:

  1. docker-compose up -d mysql nginx workspace
  2. docker-compose exec mysql bash

Found the solution, #2732 (comment)

@yaquawa
Copy link
Author

yaquawa commented Oct 20, 2020

@shlk20 Thanks a lot!

@stale
Copy link

stale bot commented Jan 18, 2021

Hi 👋 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 Jan 18, 2021
@stale
Copy link

stale bot commented Feb 9, 2021

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 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants