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.

Feature Request: Add docker cli cmd interface to docker-py

See original GitHub issue

It would be quite useful to have docker-py accept a user’s command line (just like would have been typed on a bash prompt) and be able to run the equivalent api calls in docker-py. I know this is quite a task and not easily implemented. I just wonder if other people think it would be a good idea.

LVM implements something similar in its liblvm library via an lvm2_run() function. Example here: r = lvm2_run(handle, "vgs --noheadings vg1");

Please feel free to close if this is outside the scope of the library.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aanandcommented, Apr 26, 2016

I’m not sure this makes sense as a docker-py addition. That’s mostly because I’m not clear on the use cases - but even if they are valid, it seems like having it as a separate tool would be fine.

0reactions
bfirshcommented, Nov 28, 2016

Agreed this doesn’t make sense as part of docker-py, but would make a great 3rd party project! Closing this now as there seems to be consensus on this from the maintainers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples using the Docker Engine SDKs and Docker API
This first example shows how to run a container using the Docker API. On the command line, you would use the docker run...
Read more >
Low-level API — Docker SDK for Python 6.0.1 documentation
Low-level API¶. The main object-orientated API is built on top of APIClient . Each method on APIClient maps one-to-one with a REST API...
Read more >
A Python library for the Docker Engine API - GitHub
A Python library for the Docker Engine API. It lets you do anything the docker command does, but from within Python apps –...
Read more >
Build and run a Python app in a container - Visual Studio Code
Develop, build, and debug a Python app in a Docker container, ... Open the Command Palette (Ctrl+Shift+P) and choose Docker: Add Docker Files...
Read more >
GitLab Docker images
Pre-configure Docker container. You can pre-configure the GitLab Docker image by adding the environment variable GITLAB_OMNIBUS_CONFIG to Docker run command.
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