Answer the question
In order to leave comments, you need to log in
How to run mysql in docker with port forwarding?
Ubuntu 20.04
According to the manuals, everything is simple:
docker pull mysql/mysql-server:5.7.31
docker run --name mysql -d mysql/mysql-server:5.7.31
This is how it works.
But as soon as: docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -d mysql/mysql-server:5.7.31 -it -p 33060:3306
[Entrypoint] ERROR: Unable to start MySQL. Please check your configuration.
The container won't start.
docker events does not display any intelligible errors.
Where to look?
Answer the question
In order to leave comments, you need to log in
docker run -d --name mysql -p 33060:3306 -e MYSQL_ROOT_PASSWORD=root mysql/mysql-server:5.7.31
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question