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: Manually locate docker socket #1362

Merged
merged 2 commits into from Sep 22, 2023
Merged

fix: Manually locate docker socket #1362

merged 2 commits into from Sep 22, 2023

Conversation

gbouv
Copy link
Contributor

@gbouv gbouv commented Sep 21, 2023

Description:

Kurtosis tries to manually locate the docker daemon socket before falling back to docker default behavior. In descending order of preference, it will:

  1. Use the manually set environment variable DOCKER_HOST (if not empty)
  2. Use the system wide docker socket /var/run/docker.sock if it exists
  3. Use the user docker socket ${HOME}/.docker/run/docker.sock if it exists
  4. Fallback to docker.FromEnv which was what we were doing before

Fixes #1140

Is this change user facing?

YES

References (if applicable):

Copy link
Contributor

@h4ck3rk3y h4ck3rk3y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gbouv ! Its been a pleasure :)

@gbouv gbouv enabled auto-merge (squash) September 22, 2023 11:21
@gbouv gbouv merged commit 7fe4956 into main Sep 22, 2023
30 checks passed
@gbouv gbouv deleted the gbouv/fix-docker-unix branch September 22, 2023 12:24
adschwartz pushed a commit that referenced this pull request Sep 25, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.83.6](0.83.5...0.83.6)
(2023-09-22)


### Features

* implement -n X and -a flags
([#1341](#1341))
([2c6880c](2c6880c))


### Bug Fixes

* enclave manager ui was reading the wrong type fields
([#1367](#1367))
([0bae141](0bae141))
* Manually locate docker socket
([#1362](#1362))
([7fe4956](7fe4956))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
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.

unix:///var/run/docker.sock isn't found
2 participants