Feature Request: Add docker cli cmd interface to docker-py
See original GitHub issueIt 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:
- Created 7 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top 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 >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
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.
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.