Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker-in-docker] Reverts the retry logic #659

Merged
merged 3 commits into from
Aug 18, 2023

Conversation

samruddhikhandale
Copy link
Member

@samruddhikhandale samruddhikhandale commented Aug 18, 2023

Ref: #634

Reverts #637

With addition of the retry logic, we have seen issues where docker starts but stops in between lifecycle hooks (esp onCreateCommand). See #634 (comment)

Reverting the retry logic as it seems to cause other issues, will follow-up with another issue to fix this and sed: couldn't flush stdout: Device or resource errors

Even I was able to reproduce the issue, (repro https://github.com/TRYON-Technology/Docker-in-Docker-Issue) it happens quite too often. My hypothesis is that the retry logic checks for docker status too early and triggers for a retry which brings the docker in an inconsistent state. (Docker needs at least few mili-seconds to start). Hence, this PR aims to add sleep in between docker start and retry logic.

Note: See https://github.com/samruddhikhandale/Docker-in-Docker-Issue, with these PR changes I was able to create codespaces successfully 10 times in a row.

@samruddhikhandale samruddhikhandale changed the title Update install.sh [docker-in-docker] Update retry logic Aug 18, 2023
@samruddhikhandale samruddhikhandale marked this pull request as ready for review August 18, 2023 21:12
@samruddhikhandale samruddhikhandale requested a review from a team as a code owner August 18, 2023 21:12
@samruddhikhandale samruddhikhandale changed the title [docker-in-docker] Update retry logic [docker-in-docker] Reverts the revert logic Aug 18, 2023
@samruddhikhandale samruddhikhandale changed the title [docker-in-docker] Reverts the revert logic [docker-in-docker] Reverts the retry logic Aug 18, 2023
@samruddhikhandale samruddhikhandale merged commit a4b31f3 into main Aug 18, 2023
10 of 12 checks passed
@samruddhikhandale samruddhikhandale deleted the samruddhikhandale/docker-in-docker-add-sleep branch August 18, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants