@Tej-Singh-Rana Could you please review this issue with the docker compose task? I completed the task and the container was running as expected with docker compose. I believe the validation is based on the old docker-compose v1 instead of docker compose v2 and hence failed
Hi,
I just successfully completed the task and here is the docker compose file :
version: ‘3.3’
services:
apache:
image: httpd:latest
container_name: httpd
ports:
- ‘6100:80’
volumes:
- /opt/data:/usr/local/apache2/htdocs
And use docker compose up –detach to keep it running in the background for the validation to pass.
make sure to have version: ‘3.3’ set on your docker compose
Thanks
Hi @morcodou, Thanks for testing it from your end, my container is also running, can you please check the screenshot which I have attached?
I used the docker compose up -d From the assertion error I believe the validation is using docker-compose up -d which is the deprecated command
@Tej-Singh-Rana
I completed this task by adding version: ‘3’ in the docker compose file and docker-compose was able to do the verification without any issues. But I got a gold medal only just because I had to redo this task. I completed all other tasks in this section without any redo.
Hi @vijayyuvi,
Sorry for the delayed response. Somehow I missed it. I am working with the KKE team.
Regards,
What was your docker compose file? without adding version: 3
services:
httpd:
container_name: httpd
image: “httpd:latest”
volumes:
- “/opt/data:/usr/local/apache2/htdocs”
ports:
- “8089:80”
@Tej-Singh-Rana This is available on the screenshot posted too, you can see the container is up
If we’re not explicitly mentioning a version, docker compose ,consider it as the latest version I believe.
Good to know you completed the task. version look like a required field in the file.