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

fix: return proper docker socket for remote Docker hosts #1281

Merged

Conversation

mdelapenya
Copy link
Collaborator

What does this PR do?

This PRs returns the default Docker host in the case the tc.host property is found

Why is it important?

In #1161, we improved the resolution of the Docker socket depending on multiple scenarios (docker rootless, using a remote host, etc) but in the case the tc.host property is found, it simply returned it as the Docker socket path, which is incorrect. Instead, we must return the default docker socket path (/var/run/docker.sock)

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner June 13, 2023 06:07
@mdelapenya mdelapenya added the bug An issue with the library label Jun 13, 2023
@mdelapenya mdelapenya self-assigned this Jun 13, 2023
@netlify
Copy link

netlify bot commented Jun 13, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 181a7fa
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64882876e0f7590008b4426c
😎 Deploy Preview https://deploy-preview-1281--testcontainers-go.netlify.app/features/configuration
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarcloud
Copy link

sonarcloud bot commented Jun 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya mdelapenya merged commit 20eedb0 into testcontainers:main Jun 13, 2023
62 checks passed
mdelapenya added a commit that referenced this pull request Jun 13, 2023
….5.0

* main:
  chore(deps): bump github.com/aws/aws-sdk-go in /modules/localstack (#1271)
  chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 in /modules/neo4j (#1265)
  chore(deps): bump google.golang.org/api from 0.124.0 to 0.125.0 in /examples (#1284)
  chore(deps): bump github.com/twmb/franz-go in /modules/redpanda (#1283)
  chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1282)
  fix: return proper docker socket for remote Docker hosts (#1281)
  Update java docs domain (#1279)
mdelapenya added a commit that referenced this pull request Jun 13, 2023
…er-24.0.2incompatible

* main:
  chore(deps): bump github.com/aws/aws-sdk-go in /modules/localstack (#1271)
  chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 in /modules/neo4j (#1265)
  chore(deps): bump google.golang.org/api from 0.124.0 to 0.125.0 in /examples (#1284)
  chore(deps): bump github.com/twmb/franz-go in /modules/redpanda (#1283)
  chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1282)
  fix: return proper docker socket for remote Docker hosts (#1281)
  Update java docs domain (#1279)
@mdelapenya mdelapenya deleted the fix-docker-socket-resolution branch June 13, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants