{"id":16695118,"url":"https://github.com/davidmyersdev/dx","last_synced_at":"2026-05-03T20:36:07.581Z","repository":{"id":115473726,"uuid":"344349737","full_name":"davidmyersdev/dx","owner":"davidmyersdev","description":"Safely execute commands in the current directory with Docker. Forget about dependencies.","archived":false,"fork":false,"pushed_at":"2021-10-16T19:41:58.000Z","size":633,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T00:40:01.190Z","etag":null,"topics":["bash","docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidmyersdev.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},"funding":{"github":"davidmyersdev","ko_fi":"davidmyersdev","open_collective":"davidmyersdev","patreon":"davidmyersdev"}},"created_at":"2021-03-04T04:30:58.000Z","updated_at":"2023-01-27T15:11:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1ffb558-4e27-4d06-a6ab-b00a62561dc0","html_url":"https://github.com/davidmyersdev/dx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidmyersdev/dx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmyersdev%2Fdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmyersdev%2Fdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmyersdev%2Fdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmyersdev%2Fdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidmyersdev","download_url":"https://codeload.github.com/davidmyersdev/dx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmyersdev%2Fdx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32584335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","docker"],"created_at":"2024-10-12T17:05:23.926Z","updated_at":"2026-05-03T20:36:07.546Z","avatar_url":"https://github.com/davidmyersdev.png","language":"Shell","funding_links":["https://github.com/sponsors/davidmyersdev","https://ko-fi.com/davidmyersdev","https://opencollective.com/davidmyersdev","https://patreon.com/davidmyersdev"],"categories":[],"sub_categories":[],"readme":"# dx\n\nSafely execute commands in the current directory with Docker. Forget about dependencies.\n\n![](.images/screenshot.png)\n\n## Install\n\nThe only dependency is [Docker](https://www.docker.com/).\n\n```shell\n# clone the repo\ngit clone https://github.com/voraciousdev/dx.git\n\n# make it available anywhere\nmv ./dx/dx /usr/local/bin\n```\n\n## Use\n\nYou can run `dx -h` for usage info and examples.\n\n```shell\nUsage\n    dx [-hs][-i \u003cimage\u003e][-p \u003cport\u003e] \u003ccommand\u003e\n\nOptions\n    -h          show usage info\n    -i \u003cimage\u003e  specify a docker image to use (e.g. node:lts-alpine)\n    -p \u003cport\u003e   specify port binding (as host:guest) for docker (e.g. 5000:80)\n    -s          launch an interactive shell\n\nExamples\n    dx npx cowsay hello\n    dx bundle exec rails c\n    dx youtube-dl https://youtu.be/LfhkoCAK6aA\n    dx -i node:lts-alpine npm init\n    dx -p 5001:5001 dotnet run\n    dx -s composer\n```\n\n### Examples\n\nDownload a YouTube video with `youtube-dl`.\n\n```shell\ndx youtube-dl https://youtu.be/LfhkoCAK6aA\n```\n\nConvert a video to a GIF with `ffmpeg`.\n\n```shell\ndx ffmpeg -i input.mp4 -loop 0 -c:v gif -f gif output.gif\n```\n\nThe current directory is mounted in a Docker [volume](https://docs.docker.com/engine/reference/commandline/run/#mount-volume--v---read-only) and set as the [working directory](https://docs.docker.com/engine/reference/commandline/run/#set-working-directory--w) inside the container at `/dxdir`.\n\n### Supported commands\n\nThis is a (growing) list of supported commands to run as `dx \u003ccommand\u003e`.\n\n- `cargo`\n- `deno`\n- `dotnet`\n- `ffmpeg`\n- `node` `npm` `npx` `yarn`\n- `php` `composer`\n- `python` `pip`\n- `ruby` `bundle` `bundler` `gem` `irb`\n- `youtube-dl`\n\n#### Run any command by specifying a Docker image\n\nIf a command is not yet supported, you can still use `dx` by specifying a Docker image to use with the `-i` flag.\n\n```shell\ndx -i node:lts-alpine npm init\n```\n\n### Expose a port to the host\n\nExpose a port to the host with the `-p` flag.\n\n```shell\n# just like a docker port binding (host:guest)\ndx -p 5000:5000 npx serve .\n```\n\n### Run multiple commands by launching an interactive shell\n\nLaunch an interactive shell for a given command with the `-s` flag.\n\n```shell\ndx -s composer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmyersdev%2Fdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidmyersdev%2Fdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmyersdev%2Fdx/lists"}