spurin / diveintoansible-lab

Dive Into Ansible Lab
850 stars 531 forks source link

docker exited with code 1 #56

Closed mallilinux1980 closed 3 years ago

mallilinux1980 commented 3 years ago

hi James,

hope you're doing good.

I was trying to set up lab today and it almost went through fine but failed with the last step, so not sure why. The screenshot is attached as well as my .env.

mallilinux1980 commented 3 years ago

diveintoansible-lab

mallilinux1980 commented 3 years ago

couldn't attach .env so here is the contents of the file.

sshd ports

UBUNTUC_PORT_SSHD=2221 UBUNTU1_PORT_SSHD=2222 UBUNTU2_PORT_SSHD=2223 UBUNTU3_PORT_SSHD=2224 CENTOS1_PORT_SSHD=2225 CENTOS2_PORT_SSHD=2226 CENTOS3_PORT_SSHD=2227

ttyd (web terminal) ports

UBUNTUC_PORT_TTYD=7681 UBUNTU1_PORT_TTYD=7682 UBUNTU2_PORT_TTYD=7683 UBUNTU3_PORT_TTYD=7684 CENTOS1_PORT_TTYD=7685 CENTOS2_PORT_TTYD=7686 CENTOS3_PORT_TTYD=7687

Shared config volume

CONFIG=/users/mallik/diveintoansible-lab/config

Shared home directories

ANSIBLE_HOME=/users/mallik/diveintoansible-lab/ansible_home

spurin commented 3 years ago

Hi @mallilinux1980

It looks like you're on windows, firstly, for your host paths can you please try the following format -

/host_mnt/c/users/mallik

Then, let me know how you get on from there

mallilinux1980 commented 3 years ago

thanks James.

this time no NGNIX related errors but still docker exited with 1. diveintoansible-lab1

mallilinux1980 commented 3 years ago

let me retry it post "docker-compose rm' .

spurin commented 3 years ago

Could you also try -

docker-compose pull

Before issuing the up, just to verify that you're on the latest version.

By the way, is there anything else to note in your setup that might be different? Use/configuration of WSL?

mallilinux1980 commented 3 years ago

let me retry it post "docker-compose rm' .

it worked.

thank you very much.

spurin commented 3 years ago

Awesome, thanks @mallilinux1980 for confirming. For context, the Docker image uses the official dind image, for Docker in Docker.

One of the older images for Docker had some problems with certain OS versions but the later version fixed it, therefore, In this case it might have just been bad luck.

Glad it's resolved though and hope you enjoy the rest of the course

mallilinux1980 commented 2 years ago

Hi James, Hope you doing well. Need an advice from Ansible Master:) Any opinion about this module though not quite active development since 2017? Or any other alternative exists?

https://dzone.com/articles/verifying-infrastructure-using-ansible

On Wed, Aug 25, 2021, 18:38 James Spurin @.***> wrote:

Awesome, thanks @mallilinux1980 https://github.com/mallilinux1980 for confirming. For context, the Docker image uses the official dind image, for Docker in Docker.

One of the older images for Docker had some problems with certain OS versions but the later version fixed it, therefore, In this case it might have just been bad luck.

Glad it's resolved though and hope you enjoy the rest of the course

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spurin/diveintoansible-lab/issues/56#issuecomment-905486333, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKM3QIQ4OCD753MG75J5BDT6TTMTANCNFSM5CY5NSZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .