ERROR Entrypoint Database is uninitialized and password option is not specified

0 votes

Hi Guys,

I am trying to launch one mysql container in docker, but It shows me the below error.

[root@vm1 ~]# docker run -it --name mysql mysql:latest
2020-04-14 04:55:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.19-1debian10 started.
2020-04-14 04:55:18+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-04-14 04:55:18+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.19-1debian10 started.
2020-04-14 04:55:18+00:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified


How can I solve this error?

Apr 14, 2020 in Docker by akhtar
• 38,260 points
14,664 views

1 answer to this question.

0 votes

Hi@akhtar,

As we know mysql database requires user name and password, when we try to login. That is why in docker, mysql image requires some environment variable to login in that image. Use the below given command.

$ docker run -it -e MYSQL_ROOT_PASSWORD=abc --name mysql mysql:latest

For more information, go through the below given link.

$ https://hub.docker.com/_/mysql
answered Apr 14, 2020 by MD
• 95,460 points

Related Questions In Docker

0 votes
1 answer

Docker Machine error: Hyper-V PowerShell Module is not available

 The reason is the version of the ...READ MORE

answered Sep 7, 2018 in Docker by Tyrion anex
• 8,700 points
1,082 views
0 votes
1 answer

sudo: no tty present and no askpass program specified - how to resolve this error

Hi@Roshin, When you use sudo command, it will ask ...READ MORE

answered Jun 11, 2020 in Docker by MD
• 95,460 points
5,752 views
0 votes
1 answer

What is cmd and entrypoint in Docker?

CMD and ENTRYPOINT are instructions given in ...READ MORE

answered Oct 19, 2020 in Docker by Kim
928 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,735 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP