mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
[PR #97] [MERGED] feat: docker socket protocol #120
Reference in New Issue
Block a user
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/fosrl/newt/pull/97
Author: @Nemental
Created: 7/30/2025
Status: ✅ Merged
Merged: 8/30/2025
Merged by: @oschwartz10612
Base:
main← Head:feat/docker-socket-protocol📝 Commits (4)
42dfb6bfeat: add type and function for docker endpoint parsinga79dcccfeat: checksocket protocol supporte9dbfb2fix: remove hardcoded protocol from socket patha9d8ec0docs: update docker socket part📊 Changes
3 files changed (+63 additions, -10 deletions)
View changed files
📝
README.md(+23 -2)📝
docker/client.go(+39 -7)📝
main.go(+1 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Closes #62
This PR enhances Docker socket path handling in Newt by adding support for protocol-prefixed socket paths, such as:
The new parseDockerHost function extracts the protocol and address, allowing CheckSocket to validate reachability for multiple Docker API endpoints, not just local UNIX sockets.
How to test?
TCP Example with linuxserver/docker-socket-proxy
Verify container listing loads successfully in the Pangolin UI.
Optionally, test with invalid or unreachable paths to ensure graceful error handling.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.