-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command line tools needed for talking to docker daemon in a shell script #885
Comments
It's not that hard to implement such thing yourself. I would actually open such request, providing a client without server overhead, at docker engine tracker. |
These are conflicting requirements, you don't want to install one binary, but you want to create another one that will be installed? I don't think there is any reason to create a It is possible to build a client-only binary from the current docker/docker repo. |
Not conflicting actually, since docker-py is already on our pip requirements list, and no extra overhead of installing another binary would be added if there is a
It's possible, but not as simple and straightforward as a line of command |
This feature request might be relevant: #1031 |
build client binary from docker/docker is not that complicated, I'll close this issue. |
In 1.12, there was a split in packaging. |
@TomasTomecek thanks for the sharing. |
hey all. you can also use https://github.com/containscafeine/shipy that @containscafeine wrote. It is just a few python files that builds on docker-py and you can use it like: |
Hi, guys.In some circumstance, such as building images in a jenkins container, I need to run some commands like
docker tag
,docker push
, etc.But I don't want to install another binary package for docker client in the jenkins container, so I made a trade-off by using commands likepython -c "from docker import client;client.Client(version='1.20').push('10.18.5.203:8080/mypackage','$commit_id', insecure_registry=True)"
, and such long commands make my scripts messy.If there was a command line tooldockerpy
, those long commands can be simplified withdockerpy push -v 1.20 --insecure_registry 10.18.5.203:8080/mypackage:$commit_id
.The text was updated successfully, but these errors were encountered: