Labs: Docker Storage - Script doesnt execute

The script provided here doesnt execute


link to the lab - https://learn.kodekloud.com/user/courses/docker-training-course-for-the-absolute-beginner/module/8eec0a67-f2a1-4b9b-8c25-9c9ddc3e48b6/lesson/6d81499b-42ef-498a-a025-7d9d77a022c5

How did you create the mysql-db container? Is it still up? I created it using the -d argument, to keep it running:

docker run -d --name mysql-db --env MYSQL_ROOT_PASSWORD=db_pass123 mysql

If you did this and the script still doesn’t run, then possibly there was a failure of the startup script for Step 4/10 of the lab. But my first guess is that is the DB just isn’t up in your case. Second guess is that it’s an intermittent failure, since the DB is up, but it was not updated with data for some reason.