Unable to pass the test case: Wordpress linked to db container in Docker compose Lab

In Docker compose lab exercise,though i linked wordpress to db container, its not reflecting in quiz portal.Not able to pass the test case:wordpress linked to db container.Please confirm whether my docker compose file is correct or do i need to change it? Please advise… Thanks

Same here! At least now I know my yaml code is right. This was driving me crazy!

1 Like

Hi there, can you clarify if you created the docker compose file under /root/wordpress as stated in the question?

If so, is the config validate working? try:
docker-compose -f /root/wordpress/docker-compose.yml config

Hi Even i am able to connect to wordpress.But the test case is not passing

Able to connect after running docker-compose up

My answer:

image: postgres
POSTGRES_PASSWORD: mysecretpassword
image: wordpress
- 8085:80
- db

The result:
X WordPress linked to db container

Try many times.

I am getting the result. But in labs page unabe to pass the testcase

Also you want me to try docker-compose up many times or click the check button many times? Tried both.

Hi - its good that its working, but I also wanted to check if you have the docker compose file in the same directory thats mentioned in the question?

The test also validates that.

Yeah. Its in the mentioned directory only.

I am also getting the same issue when creating container through docker-compose .
also does any one know
1- how to check if container is linked with which other containers ?
2-how to link running containers ?