mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #131] [MERGED] Update docker.rs to allow http docker socket connection #690
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/131
Author: @Svagtlys
Created: 10/16/2024
Status: ✅ Merged
Merged: 10/17/2024
Merged by: @mbecker20
Base:
main← Head:Docker-Socket-Proxy-via-HTTP-Connection📝 Commits (2)
2ec7feaUpdate docker.rs to allow http docker socket connection8f1c8d8Update docker.rs📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
bin/periphery/src/docker.rs(+1 -1)📄 Description
Add or_else to allow attempt to connect to docker socket proxy via http if local connection fails, as per #87.
This was tested by adding env var DOCKER_HOST to the compose.env file (picked up by periphery container, which is run as a non-root user without the docker.sock volume defined), creating a new stack in Komodo (using redis image), then deploying. Deployment was successful, however the stack is marked as down in Komodo. I double-checked that the periphery agent is able to view running containers and the logs of those containers by exec-ing into the container and running the commands, so I am unsure where the issue lies.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.