{"id":47210371,"url":"https://github.com/vjik/docker-run","last_synced_at":"2026-03-13T15:44:57.132Z","repository":{"id":339147690,"uuid":"1160661812","full_name":"vjik/docker-run","owner":"vjik","description":"GitHub Action that runs a command in a new Docker container with a simple, declarative syntax.","archived":false,"fork":false,"pushed_at":"2026-02-18T12:34:16.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T15:47:30.842Z","etag":null,"topics":["actions","ci","container","docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vjik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yaml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://pay.cloudtips.ru/p/192ce69b","https://boosty.to/vjik"]}},"created_at":"2026-02-18T08:09:13.000Z","updated_at":"2026-02-18T12:33:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vjik/docker-run","commit_stats":null,"previous_names":["vjik/github-action-docker-run"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vjik/docker-run","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjik%2Fdocker-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjik%2Fdocker-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjik%2Fdocker-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjik%2Fdocker-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vjik","download_url":"https://codeload.github.com/vjik/docker-run/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjik%2Fdocker-run/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30469379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["actions","ci","container","docker"],"created_at":"2026-03-13T15:44:56.692Z","updated_at":"2026-03-13T15:44:57.124Z","avatar_url":"https://github.com/vjik.png","language":"Shell","funding_links":["https://pay.cloudtips.ru/p/192ce69b","https://boosty.to/vjik"],"categories":[],"sub_categories":[],"readme":"# `vjik/docker-run` GitHub Action\n\n[![GitHub release](https://img.shields.io/github/v/release/vjik/docker-run?style=flat-square)](https://github.com/vjik/docker-run/releases)\n[![License](https://img.shields.io/github/license/vjik/docker-run?style=flat-square)](./LICENSE)\n\nGitHub Action that runs a command in a new Docker container with a simple, declarative syntax.\n\n**Features:**\n\n- Run commands in any Docker image directly from your workflow\n- Mount volumes and pass environment variables with multi-line input support\n- Authenticate with private registries (Docker Hub, GHCR, and others)\n- Pass additional `docker run` options for full flexibility\n\n\u003e [!IMPORTANT]\n\u003e This project is developed and maintained by [Sergei Predvoditelev](https://github.com/vjik).\n\u003e Community support helps keep the project actively developed and well maintained.\n\u003e You can support the project using the following services:\n\u003e\n\u003e - [Boosty](https://boosty.to/vjik)\n\u003e - [CloudTips](https://pay.cloudtips.ru/p/192ce69b)\n\u003e\n\u003e Thank you for your support ❤️\n\n## General usage\n\n### Basic\n\n```yaml\n- uses: vjik/docker-run@v1\n  with:\n    image: ubuntu:24.04\n    command: echo \"Hello from container\"\n```\n\n### Volume mounts and environment variables\n\n```yaml\n- uses: vjik/docker-run@v1\n  with:\n    image: python:3.12\n    volumes: |\n      ${{ github.workspace }}:/work\n      /tmp/cache:/cache\n    env: |\n      CI=true\n      GREETING=Hello World\n    workdir: /work\n    command: |\n      pip install -r requirements.txt\n      python -m pytest tests/\n```\n\n### Using bash\n\nBy default, commands run via `sh -c`. To use bash-specific syntax, invoke `bash -c` explicitly:\n\n```yaml\n- uses: vjik/docker-run@v1\n  with:\n    image: bash:5\n    volumes: ${{ github.workspace }}:/work\n    command: |\n      bash -c 'arr=(one two three); echo \"${arr[@]}\" \u003e /work/result.txt'\n```\n\n### Private registry\n\n```yaml\n- uses: vjik/docker-run@v1\n  with:\n    image: ghcr.io/my-org/my-image:latest\n    registry: ghcr.io\n    username: ${{ github.actor }}\n    password: ${{ secrets.GITHUB_TOKEN }}\n    command: echo \"Authenticated\"\n```\n\nWithout `registry`, authentication defaults to Docker Hub:\n\n```yaml\n- uses: vjik/docker-run@v1\n  with:\n    image: my-org/my-private-image:latest\n    username: ${{ secrets.DOCKERHUB_USERNAME }}\n    password: ${{ secrets.DOCKERHUB_TOKEN }}\n    command: echo \"Authenticated to Docker Hub\"\n```\n\n## Inputs\n\n| Input      | Required  | Description                                                                                |\n|------------|-----------|--------------------------------------------------------------------------------------------|\n| `image`    | Yes       | Docker image to run (e.g. `ubuntu:24.04`, `python:3.12`)                                   |\n| `command`  | Yes       | Shell command to run inside the container                                                  |\n| `volumes`  | No        | Volume mounts, one per line (e.g. `/host/path:/container/path`)                            |\n| `env`      | No        | Environment variables, one per line (e.g. `MY_VAR=some value`)                             |\n| `workdir`  | No        | Working directory inside the container                                                     |\n| `options`  | No        | Additional `docker run` options (e.g. `--network host --cpus 2`)                           |\n| `registry` | No        | Docker registry URL for authentication (e.g. `ghcr.io`). Defaults to Docker Hub if omitted |\n| `username` | No        | Username for Docker registry authentication                                                |\n| `password` | No        | Password or token for Docker registry authentication                                       |\n\n## Limitations\n\n- Values with spaces in the `options` input are not supported (e.g. `-e MY_VAR=\"Hello World\"`). Use `volumes`, `env` and\n  `workdir` inputs instead, which handle spaces correctly.\n- The command is executed via `sh -c`, so bash-specific syntax is not available unless the container image includes bash\n  and you invoke it explicitly (e.g. `bash -c \"...\"`).\n\n## License\n\nThe `vjik/docker-run` is free software. It is released under the terms of the BSD License.\nPlease see [`LICENSE`](./LICENSE) for more information.\n\n## Credits\n\nThe package is inspired by [addnab/docker-run-action](https://github.com/addnab/docker-run-action) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjik%2Fdocker-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvjik%2Fdocker-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjik%2Fdocker-run/lists"}