question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

command line tools needed for talking to docker daemon in a shell script

See original GitHub issue

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 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:closed
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dustymabecommented, Jul 28, 2016

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

0reactions
jizhilongcommented, Jul 28, 2016

@TomasTomecek thanks for the sharing.

Read more comments on GitHub >

github_iconTop 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 >
Use the Docker command line
Docker's CLI command description and usage.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found