Skip to content

Commit

Permalink
fix: Make docker host overridable (#52091)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker authored Jul 3, 2023
1 parent 2c768b6 commit 1653ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/runner/commands/devservices.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"~/Library/Containers/com.docker.docker/Data/docker.raw.sock"
)
if os.path.exists(RAW_SOCKET_HACK_PATH):
os.environ["DOCKER_HOST"] = "unix://" + RAW_SOCKET_HACK_PATH
os.environ.setdefault("DOCKER_HOST", "unix://" + RAW_SOCKET_HACK_PATH)

# assigned as a constant so mypy's "unreachable" detection doesn't fail on linux
# https://github.com/python/mypy/issues/12286
Expand Down

0 comments on commit 1653ff8

Please sign in to comment.