command line tools needed for talking to docker daemon in a shell script
See original GitHub issueHi, 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 like python -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 tool dockerpy
, those long commands can be simplified with dockerpy push -v 1.20 --insecure_registry 10.18.5.203:8080/mypackage:$commit_id
.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
dockerd - Docker Documentation
The Docker daemon can listen for Docker Engine API requests via three different types of Socket: unix , tcp , and fd ....
Read more >Protect the Docker daemon socket - Docker Documentation
Protect the Docker daemon socket. By default, Docker runs through a non-networked UNIX socket. It can also optionally communicate using SSH or a...
Read more >Best practices for writing Dockerfiles - Docker Documentation
Best practices for writing Dockerfiles. This document covers recommended best practices and methods for building efficient images.
Read more >How To Use docker exec to Run Commands in ... - DigitalOcean
Docker is a containerization tool that helps developers create and manage portable, consistent Linux containers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
python shipy run --name batman -p 8080:8080 centos ping 8.8.8.8
@TomasTomecek thanks for the sharing.