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

container "redmine-mysql-1" does not start with docker v26.0.2 and works with 26.0.1 ... ? #554

Open
steveoriol opened this issue Apr 20, 2024 · 3 comments

Comments

@steveoriol
Copy link

steveoriol commented Apr 20, 2024

container "redmine-mysql-1" does not start with docker v26.0.2 and works with v26.0.1

[+] Running 1/0    
 ✔ Container redmine-mysql-1  Created                                          0.0s 
Attaching to mysql-1  
  
mysql-1  | Could not connect to mysql server. Aborting...  
mysql-1 exited with code 1
@jcormier
Copy link
Collaborator

jcormier commented Apr 20, 2024 via email

@steveoriol
Copy link
Author

For exemple, with this very minimal tree:

❯ tree                                                                                                                                                                                         
.                                                                                                                                                                                              
├── docker-compose.yml                                                                                                                                                                         
└── volumes                                                                                                                                                                                    
    └── db 

with docker-compose.yml as :

services:
  mysql:
    image: sameersbn/mysql:5.7.22-1
    environment:
      - DB_USER=redmine
      - DB_PASS=password
      - DB_NAME=redmine_production
    volumes:
      - ./volumes/db:/var/lib/mysql

when I try to start under Docker version 26.0.2, build 3c863ff, I get

❯ docker compose up 
[+] Running 1/2
 ✔ Network test_default    Created                                                                                                                                                        0.2s 
 ⠋ Container test-mysql-1  Created                                                                                                                                                        0.1s 
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1 exited with code 1

It won't start...

And if I try with Docker version 26.0.1, build d260a54c81, It is works well, I get :

> docker compose up
[+] Running 1/2
 ✔ Network test_default    Created                                                                                 0.2s 
 ⠙ Container test-mysql-1  Created                                                                                 0.1s 
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1  | Starting MySQL server...
mysql-1  | Waiting for database server to accept connections.....
mysql-1  | Creating debian-sys-maint user...
mysql-1  | Creating database "redmine_production"...
mysql-1  | Granting access to database "redmine_production" for user "redmine"...
mysql-1  | 2024-04-22T15:37:53.178577Z mysqld_safe Logging to syslog.
mysql-1  | 2024-04-22T15:37:53.227145Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  Gracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container test-mysql-1  Stopped                                                                                10.6s 
canceled

@jcormier
Copy link
Collaborator

Thanks for the details. I'm running ubuntu 20.04 and have docker version 26.1.0 and the MySQL container starts. Perhaps docker broke something and then fixed it in the latest version?

$ docker version
Client: Docker Engine - Community
 Version:           26.1.0

$ docker compose -f docker-compose-mysql.yml up mysql
WARN[0000] /home/jcormier/dockers/docker-redmine/docker-compose-mysql.yml: `version` is obsolete
[+] Running 0/1
 ⠙ Container docker-redmine-mysql-1  Created                                                                                                         0.1s
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1  | Starting MySQL server...
mysql-1  | Waiting for database server to accept connections.
mysql-1  | Creating debian-sys-maint user...
mysql-1  | Creating database "redmine_production"...
mysql-1  | Granting access to database "redmine_production" for user "redmine"...
mysql-1  | 2024-04-29T19:45:53.447276Z mysqld_safe Logging to syslog.
mysql-1  | 2024-04-29T19:45:53.460177Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants