Salim
July 25, 2020, 6:31pm
#1
Hi @Inderpreet @Ayman @kodekloud-support3 ,
I have the directory /var/www/html/ mapped from the host to the container php_blog yet the validation message is saying the mapping is not setup correctly. Where have I did this wrong?You can see below the index.php file is found on both html directories on the host and the container.
The html directory on stapp03
HTML directory within the container php_blog
curl test
Regards,
Salim
Salim
July 28, 2020, 4:17am
#2
@Inderpreet , please check this.
Thank you.
Salim
August 1, 2020, 5:28pm
#3
Hi @Inderpreet ,
Please assist to check this. Thanks
As per the screenshot your container names also seems incorrect, are you sure the correct names were used as per the question ?
Salim
August 2, 2020, 6:43am
#5
@Inderpreet ,
Here is my docker-compose.yml file, I have php_blog and mysql_blog container names in it. what did I miss?
Thanks
I think you have to add container_name: “name” field ?
Yea, @Tej-Singh-Rana is right. For containers you need to use container_name
.
Salim
August 2, 2020, 7:02am
#8
@Inderpreet @rahul456 @Ayman My task failed with the message
Can you please take a look where I did wrong? Everything worked fine when I checked.
Lakshmi
August 30, 2020, 3:18pm
#10
@rahul456
Hi! Any update on this please?
Hi @Lakshmi , you have set ‘MYSQL_USER: root’ but root user already exists by default so during build time it will try to recreate user root and going to fail.
Lakshmi
August 31, 2020, 11:17am
#12
@rahul456
Thank you so much for your response. But in the task details, it’s asked for user root. That’s where I got confused. Can I retry?
@Lakshmi , did you already have today’s task in your bucket ? Please let me know once you have new task assigned for today.
Lakshmi
August 31, 2020, 1:49pm
#14
@rahul456
As of now there is no task assigned Rahul.
@Lakshmi , this is marked pending for you, please give it an another try.
1 Like
Lakshmi
August 31, 2020, 4:16pm
#16
@rahul456
Thank you so much! I completed the task successfully
@rahul456 , In this task should we specify MYSQL_USER=root or not?
@Lakshmi , I got same error msg upon submitting the task , Do we have to not set db_user=root?..I logged into app server as a root and the run the compose file by specifying db_user=root…
Lakshmi
September 12, 2020, 12:35pm
#19
@pratikshag
As per the task by default the user is root. We aren’t supposed to specify. In fact we can ignore that line.
@Lakshmi …Thanks for your response, will do the task without setting db user=root in future.