Skip to content

Commit

Permalink
fix: db-load-data error when restarting (#4408)
Browse files Browse the repository at this point in the history
Building db-load-data through docker compose (and/or as part of `make up.full`) fails with the following error:
``` 

Error response from daemon: invalid argument
```

The dockerd logs return the same generic error

```
Jan 08 13:38:52 matthieu-pr dockerd[16067]: time="2025-01-08T13:38:52.522058822Z" level=error msg="Handler for POST /v1.47/containers/create returned error: invalid argument" spanID=fe7aeda7b6d9d9b0 traceID=1c9ac07f8dd5be064aa53533cf0aa86e

```

## Solution
Clearing the microdnf cache: `microdnf clean all`

## Failed attempts 
Considered along the way:

- ❌ checking the container logs: empty
- ❌ create a container on a base mysql image then drop into it, and run the commands manually: goes through
- ❌ using a different package manager: apt, yum not present on base mysql image
  • Loading branch information
mlbrgl authored Jan 10, 2025
1 parent 87ee1b7 commit 3360e1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devTools/docker/mysql-init-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ RUN rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 \
curl \
rsync \
unzip \
gzip
gzip \
&& microdnf clean all

0 comments on commit 3360e1c

Please sign in to comment.