spurin / diveintoansible-lab

Dive Into Ansible Lab
788 stars 498 forks source link

Error while running docker-compose up #83

Closed abhijanjoshi closed 2 years ago

abhijanjoshi commented 2 years ago

I did all the steps that is mentioned in the readme.md file. I see this error: cmd-log.txt The .env file: env.txt

Please help me solve the issue

spurin commented 2 years ago

Hi @abhijanjoshi

Thanks for reaching out to me on this. I've looked through your setup and this looks fine. How did you setup and download the diveintoansible-lab folder? Was it via git, downloaded as a zip and extracted or some other way?

What happens if you run -

docker run --rm -v /host_mnt/c/users/inajph/diveintoansible-lab/config:/config ubuntu cat /config/guest_name
abhijanjoshi commented 2 years ago

Hi @spurin,

I downloaded it as zip file. if I run the command you have given I see below: image

spurin commented 2 years ago

Hi @abhijanjoshi

That suggests that Docker isn't running, could you please re-run Docker and let me know, thanks

abhijanjoshi commented 2 years ago

@spurin image

spurin commented 2 years ago

Okay, it looks as if your Docker instance doesn't have permissions to access local folders.

What happens if you run the following -

docker run --rm -v /host_mnt/c/users/inajph:/test ubuntu ls /test

docker run --rm -v /host_mnt/c/users:/test ubuntu ls /test

docker run --rm -v /host_mnt/c:/test ubuntu ls /test

docker run --rm -v /mnt/c:/test ubuntu ls /test

By the way, is there anything particular about this setup? For example, is it a works system that might have a security profile?

spurin commented 2 years ago

Also, in Docker Settings, can you take a look under Resources, File Sharing. A screenshot of this would be useful please

spurin commented 2 years ago

Hi @abhijanjoshi

Closing this issue, please let me know if you have any further problems and I'll re-open.

Best Regards

James Spurin