Reputation: 59
I am facing an issue when i want to run a mysql container: I tried with the example command i found on the Docker hub:
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.6.24
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2569c1a8cbd2 mysql:5.6.24 "/entrypoint.sh mysq…" 5 seconds ago Exited (139) 4 seconds ago some-mysql
Shows that the container exited with code 139
And i can't have a single line of logs: the return of the docker logs command is empty...
~ docker logs 2569c1a8cbd2
~
I am using Docker(v19.03.1, build 74b1e89) for Debian(v10.0)
Upvotes: 1
Views: 2127
Reputation: 1983
I'm using a Macbook Pro M1.
In Docker Desktop
Settings -> Features in development
Untick "Use Rosetta for x86/amd64 emulation on Apple Silicon"
Source: https://github.com/docker/roadmap/issues/384#issuecomment-1519853919
Upvotes: 0
Reputation: 4933
Today I had the same issue after an upgrade from Debian 9 to 11. The mysql:5.6.24
Docker image just doesn't want to start. My solution was to upgrade to image mysql:5-debian
Upvotes: 0
Reputation: 1485
Are you running other containers? (maybe a separate project?)
I have two separate projects with their separate docker-compose files and their own services.
When one is running, the one with a mysql/mariadb container exits with 139. If I docker-compose down
the other project, then the mysql container starts correctly.
I'm still figuring out why (came here for an answer to my problem), but you might have something similar.
Upvotes: 0