Hello, I have a problem on a machine with Centos when I install docker passbolt, the passbolt_db_1 database docker keeps restarting constantly, looking at the docker log it tells me:
Any idea why this happens?
My docker-compose-ce.yaml:
version: '3'
services:
db:
image: mariadb:10.10
restart: unless-stopped
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "true"
MYSQL_DATABASE: "passbolt"
MYSQL_USER: "passbolt"
MYSQL_PASSWORD: "P4ssb0lt"
volumes:
- db_volume:/var/lib/mysql
passbolt:
image: passbolt/passbolt:latest-ce
#Alternatively you can use rootless:
#image: passbolt/passbolt:latest-ce-non-root
restart: unless-stopped
depends_on:
- db
environment:
APP_FULL_BASE_URL: http://passbolt.site.com:8081
DATASOURCES_DEFAULT_HOST: "db"
DATASOURCES_DEFAULT_USERNAME: "passbolt"
DATASOURCES_DEFAULT_PASSWORD: "P4ssb0lt"
DATASOURCES_DEFAULT_DATABASE: "passbolt"
volumes:
- gpg_volume:/etc/passbolt/gpg
- jwt_volume:/etc/passbolt/jwt
command: ["/usr/bin/wait-for.sh", "-t", "0", "db:3306", "--", "/docker-entrypoint.sh"]
ports:
- 8081:80
# - 3303:3306
# - 443:443
#Alternatively for non-root images:
# - 80:8080
# - 443:4433
volumes:
db_volume:
gpg_volume:
jwt_volume:
Hi @ipalacio Welcome to the forum!
I’m not sure why this version of mariadb would cause a problem but this seems to be the issue:
opened 02:47AM - 24 May 22 UTC
closed 01:43AM - 25 May 22 UTC
### Steps to reproduce
1. Install Docker on Ubuntu 22.06 x86_64
```
$ dock… er -v
Docker version 20.10.6, build 370c289
$ more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
```
2. Docker run using "mariadb:latest"
```
docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:latest
```
3. Login to the container
```
docker exec -it mariadbtest bash
```
### Expected behavior
`docker exec -it mariadbtest bash` should open bash prompt.
### Actual behavior
`Error response from daemon: Container`.
Here are actual log files.
```
$ docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:latest
Unable to find image 'mariadb:latest' locally
latest: Pulling from library/mariadb
125a6e411906: Pull complete
a28b55cc656d: Pull complete
f2325f4e25a1: Pull complete
c6c2d09f748d: Pull complete
af2b4ed853d2: Pull complete
8394ac6b401e: Pull complete
5b150cf0c5a7: Pull complete
1b11b2e20899: Pull complete
3d35790a91d9: Pull complete
5e73c7793365: Pull complete
3d34b9f14ede: Pull complete
Digest: sha256:3a24e9e99882a6848c5793f36ec7a730a8d301c5175613cd22a341fc039bd10a
Status: Downloaded newer image for mariadb:latest
9ca954cada2e147344469c3a376e1a3a760c5e7acd5f19565fdb5975b4237af1
```
```
$ docker exec -it mariadbtest bash
Error response from daemon: Container 9ca954cada2e147344469c3a376e1a3a760c5e7acd5f19565fdb5975b4237af1 is not running
```
```
$ docker logs -f mariadbtest
2022-05-24 02:39:15+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.3+maria~jammy started.
2022-05-24 02:39:15+00:00 [ERROR] [Entrypoint]: mariadbd failed while attempting to check config
command was: mariadbd --verbose --help --log-bin-index=/tmp/tmp.kMff4dllgU
Can't initialize timers
$
```
### Additional information
This environment can run 'mariadb:10.7' as follows.
```
$ docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:10.7
Unable to find image 'mariadb:10.7' locally
10.7: Pulling from library/mariadb
d5fd17ec1767: Pull complete
49b1cc1f34f7: Pull complete
9924a2c30493: Pull complete
a2bb7d6219ce: Pull complete
1eb5d2e9991e: Pull complete
3cbaef7da880: Pull complete
52f39675d129: Pull complete
01e063a0d770: Pull complete
50fb616a753d: Pull complete
36bc0be24a08: Pull complete
5afe25c59347: Pull complete
Digest: sha256:85fbfe23f9b710d21c76832ae4df096c58db0f63d5a040beea3e1e935ad39ca3
Status: Downloaded newer image for mariadb:10.7
b82cffa4918860ad75bd0b46a01cb412b152a938d280cacab9fe1d2d2a175c81
```
```
$ docker exec -it mariadbtest bash
root@b82cffa49188:/# mysql -uroot -pmypass
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.7.4-MariaDB-1:10.7.4+maria~focal mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> select version();
+-------------------------------------+
| version() |
+-------------------------------------+
| 10.7.4-MariaDB-1:10.7.4+maria~focal |
+-------------------------------------+
1 row in set (0.000 sec)
MariaDB [(none)]> quit
Bye
root@b82cffa49188:/#
```
It seems it is a result of the host docker version and maybe container version.
Thank you!!
indeed the problem is the version of docker
1 Like