{"id":15893485,"url":"https://github.com/multimeric/dockercli","last_synced_at":"2025-10-12T13:39:25.603Z","repository":{"id":85377215,"uuid":"142952343","full_name":"multimeric/DockerCli","owner":"multimeric","description":"A command line tool for running executable docker images, and automatically mounting in any files used in the command","archived":false,"fork":false,"pushed_at":"2018-07-31T06:39:18.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T13:38:51.393Z","etag":null,"topics":["bioinformatics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multimeric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T02:33:31.000Z","updated_at":"2022-07-28T13:16:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"72ae7cc2-c4b0-4660-b7ed-027ced4eef29","html_url":"https://github.com/multimeric/DockerCli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/multimeric/DockerCli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FDockerCli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FDockerCli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FDockerCli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FDockerCli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multimeric","download_url":"https://codeload.github.com/multimeric/DockerCli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FDockerCli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011452,"owners_count":26084947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bioinformatics"],"created_at":"2024-10-06T08:11:08.423Z","updated_at":"2025-10-12T13:39:25.575Z","avatar_url":"https://github.com/multimeric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker CLI\n\n`docker-cli` is a command-line tool for running executable docker images, which automatically mounts any necessary\nfiles into the container.\n\nFor example, let's say you want to run the command-line tool [`bwa`](http://bio-bwa.sourceforge.net/). If you have\n`bwa` installed locally, you could use a command like this. Easy!\n```bash\nbwa index hg19.fasta\n```\n\nHowever, if you wanted to do this inside a docker container, you would first have to mount the file into the container,\nmaking the command much more complicated and slow to write:\n```bash\ndocker run -v hg19.fasta:/tmp lh3lh3/bwa index /tmp/hg19.fasta\n```\n`docker-cli` automatically generates these mount flags, allowing you to instead run:\n\n```bash\ndocker-cli lh3lh3/bwa hg19.fasta\n```\n\n## Installation\nTo install the command, first ensure you have Python 3.6 or above installed. Then, run:\n\n```bash\npython3 -m pip install git+https://github.com/TMiguelT/DockerCli\n```\n\n## Usage\nOnce you install this package, you will have the `docker-cli` command available. Use this command exactly as you would\nthe normal `docker run` command; `docker run --rm mycontainer` becomes `docker-cli mycontainer`.\n\nThe full command line interface, including additional flags, is listed here:\n\n```\nusage: docker-cli [-h] [-n] [-p] [-e] ...\n\nRuns a Docker image, automatically converting filepaths to a bindmount inside\nthe container\n\npositional arguments:\n  arguments           Arguments to pass to the docker container\n\noptional arguments:\n  -h, --help          show this help message and exit\n  -n, --no-rm         Don't delete the container after it runs (the default)\n  -p, --mount-parent  Mount the containing folder for each file, rather than\n                      mounting each file individually. This can be helpful when\n                      using index files etc.\n  -e, --echo-command  Print the generated docker command instead of running\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fdockercli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultimeric%2Fdockercli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fdockercli/lists"}