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

Update target-chrome-docker's runningInDocker check for cgroupsv2 #478

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

remleduff
Copy link
Contributor

@remleduff remleduff commented Oct 11, 2023

This fixes docker-in-docker for me, particularly in gitlab. Without this, it tries to connect to 127.0.0.1 rather than the container's correct IP address and fails with a timeout.

See benfred/py-spy#614

Fixes #421

@remleduff
Copy link
Contributor Author

My biggest question is why we need this check at all.

Doing the docker inspect unconditionally seems to work for me, and using the container's IP address should always be better I'd think?

This fixes docker-in-docker for me, particularly in gitlab.
Without this, it tries to connect to 127.0.0.1 rather than the
container's correct IP address and fails with a timeout.
@oblador oblador merged commit fafedca into oblador:master Oct 31, 2023
4 checks passed
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.

Loki into GitLab CI not working.
2 participants