Docker Community Forums

Share and learn in the Docker community.

Issue with MySQL

Hi guys, I’m having some problems using the docker with mysql when I try to create a container it returns me a json with a errors below:

Docker run

docker run
-p 0.0.0.0:7999:3306
–name gsd-db
-e MYSQL_ROOT_PASSWORD=password
-e MYSQL_USER=gsd-db
-e MYSQL_DATABASE=gsd
-d mysql

JSON

{
“errors”: [
{
“code”: “UNAUTHORIZED”,
“message”: “authentication required”,
“detail”: [
{
“Type”: “repository”,
“Class”: “”,
“Name”: “library/mysql”,
“Action”: “pull”
}
]
}
]
}

I tried everything before I came here,
if anyone can help me with this issue I am very grateful!