docker-sdk-go
docker-py
docker-sdk-go | docker-py | |
---|---|---|
1 | 5 | |
5 | 6,640 | |
- | 0.6% | |
10.0 | 7.8 | |
over 7 years ago | 22 days ago | |
Go | Python | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docker-sdk-go
-
Ask HN: Go vs. Python (Docker SDK)
Author of the Docker Python SDK and attempted author of a better Docker Go SDK here.
The Go SDK is very low level, and a lot of the high level stuff happens inside the client code in a way that is hard to extract. There was an effort to abstract that in a way that could be reused but it was never prioritized so got stuck on the backburner. I attempted to create a separate SDK that the Docker client didn't build upon, but, if I recall correctly, there wasn't much appetite to do that because then we would have to maintain two codebases and it wouldn't automatically get better when we fixed bugs/improved things in the Docker client.
Here was the prototype: https://github.com/bfirsh/docker-sdk-go
As others say here, Go code does tend to be more verbose, but the Docker Go SDK is very low level and could be higher level. It doesn't have a `Run()` function for example, and there is no technical reason why it couldn't.
docker-py
-
Ask HN: Go vs. Python (Docker SDK)
In this specific example, I can't imagine how all of this exposed plumbing and error handling adds much value for the person reading or writing the code. In fairness, however, the Go code could easily be moved into function that does all of the dirty work and presents a minimal interface...which is what the Python example is doing:
https://github.com/docker/docker-py/blob/923e067dddc3d4b86e4...
-
Abandoned Docker Library?
Their Dockerfile seems quite straightforward. You could build the container yourself if you'd like.
-
Best way to scripting docker commands?
Maybe try something like Docker SDK for Python (Probably other languages have SDK’s as well)
-
Project to Regularly and Automatically Update Docker Image (called RAUDI)
So, it turns out that docker-py does not (and possibly, will not) support Buildkit. Issue #2230.
What are some alternatives?
kubernetes - Production-Grade Container Scheduling and Management
python-on-whales - An awesome Python wrapper for an awesome Docker CLI!
python-podman - Python bindings and code examples for using Varlink access to Podman Service
pycontainerd - Python bindings for containerd API
RAUDI - A repo to automatically generate and keep updated a series of Docker images through GitHub Actions.
pymoof - Connect to your Vanmoof SX3 using python
GitPython - GitPython is a python library used to interact with Git repositories.
Docker Compose - Define and run multi-container applications with Docker
watchtower - A process for automating Docker container base image updates.
puredns - Puredns is a fast domain resolver and subdomain bruteforcing tool that can accurately filter out wildcard subdomains and DNS poisoned entries.
swarm-kit - 🔥 Self-Hosted Docker Swarm Toolkit