mirror of
https://github.com/fosrl/newt.git
synced 2026-07-11 13:40:01 -05:00
[PR #349] [MERGED] Refactor Docker client imports and container handling logic #5380
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/349
Author: @marcschaeferger
Created: 5/10/2026
Status: ✅ Merged
Merged: 5/17/2026
Merged by: @oschwartz10612
Base:
main← Head:issue-348📝 Commits (1)
0e2d705refactor: update Docker client imports and adjust container handling logic📊 Changes
3 files changed (+56 additions, -75 deletions)
View changed files
📝
docker/docker.go(+31 -23)📝
go.mod(+7 -14)📝
go.sum(+18 -38)📄 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 (generated by Copilot)
This pull request migrates the Docker integration from the deprecated
github.com/docker/dockerpackage to the actively maintainedgithub.com/moby/mobypackages. It updates imports, adapts to new APIs, and adjusts code to work with the new types and structures, improving long-term maintainability and compatibility.Migration to
moby/mobyDocker client:github.com/docker/dockerwithgithub.com/moby/moby/apiandgithub.com/moby/moby/clientthroughoutdocker/docker.go. [1] [2]moby/mobyclient, including changes to container listing, inspection, and event streaming logic. [1] [2] [3] [4] [5] [6]Adaptation to new API structures:
ContainerListResult.Items,ContainerInspectOptions,EventsListOptions), and updated field accesses accordingly. [1] [2] [3]Dependency updates:
github.com/docker/dockerdependency and addedgithub.com/moby/moby/apiandgithub.com/moby/moby/clientingo.mod.Closes: #348
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.