Skip to content

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

Merged
samruddhikhandale merged 3 commits intomainfrom
samruddhikhandale/docker-in-docker-add-sleep
Aug 18, 2023
Merged

[docker-in-docker] Reverts the retry logic#659
samruddhikhandale merged 3 commits intomainfrom
samruddhikhandale/docker-in-docker-add-sleep

Conversation

@samruddhikhandale
Copy link
Copy Markdown
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
Comment thread src/docker-in-docker/install.sh Outdated
Comment thread src/docker-in-docker/install.sh
@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
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