{"id":23441808,"url":"https://github.com/bash-it/bash-it-docker","last_synced_at":"2025-04-09T21:26:49.631Z","repository":{"id":47602537,"uuid":"77896311","full_name":"Bash-it/bash-it-docker","owner":"Bash-it","description":"Bash-it as a Docker container/image","archived":false,"fork":false,"pushed_at":"2021-08-22T14:35:39.000Z","size":17,"stargazers_count":64,"open_issues_count":2,"forks_count":16,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-15T13:42:20.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bash-it.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-03T08:02:08.000Z","updated_at":"2024-07-24T22:49:25.000Z","dependencies_parsed_at":"2022-09-06T12:40:28.914Z","dependency_job_id":null,"html_url":"https://github.com/Bash-it/bash-it-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bash-it%2Fbash-it-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bash-it%2Fbash-it-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bash-it%2Fbash-it-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bash-it%2Fbash-it-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bash-it","download_url":"https://codeload.github.com/Bash-it/bash-it-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248113838,"owners_count":21049914,"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","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":[],"created_at":"2024-12-23T17:18:35.195Z","updated_at":"2025-04-09T21:26:49.607Z","avatar_url":"https://github.com/Bash-it.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"![docker](https://github.frapsoft.com/bashit/Bash-it_400px_transparent.png)\n\n# bash-it-docker\n\n_Bash Shell v.5 with [Bash-it](https://github.com/Bash-it/bash-it), [bats](https://github.com/sstephenson/bats) and [bash-completion](https://github.com/scop/bash-completion) based on [Alpine Linux](https://alpinelinux.org/) as unprivileged User_\n\n[![Build Status](https://travis-ci.org/Bash-it/bash-it-docker.svg?branch=master)](https://travis-ci.org/Bash-it/bash-it-docker) [![Docker Automated Build](https://img.shields.io/docker/automated/ellerbrock/bash-it.svg)](https://hub.docker.com/r/ellerbrock/bash-it/) [![Docker Pulls](https://img.shields.io/docker/pulls/ellerbrock/bash-it.svg)](https://hub.docker.com/r/ellerbrock/bash-it/) [![Quay Status](https://quay.io/repository/ellerbrock/bash-it/status)](https://quay.io/repository/ellerbrock/bash-it) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg)](https://github.com/ellerbrock/open-source-badges/) [![Gitter Chat](https://badges.gitter.im/frapsoft/frapsoft.svg)](https://gitter.im/Bash-it/bash-it/)\n\n- Docker: [bash-it](https://hub.docker.com/r/ellerbrock/bash-it/)\n- Quay: [bash-it](https://quay.io/repository/ellerbrock/bash-it/)\n\n## Info\n\n_Consider this Repository as Work in Progress._  \n\nYou can find Documentation how to use and setup Bash-it in the [Main Repository](https://github.com/Bash-it/bash-it).  \nPlease open only issues related to Docker in this Repository.\n\n## Installation\n\n`docker pull ellerbrock/bash-it`\n\n## About the Container\n\nAs Base Image i use [Alpine Linux](https://alpinelinux.org/) which is lightweight Distribution with a small surface area for security concerns, but with enough functionality for development and interactive debugging.\n\nTo prevent zombie reaping processes i run [dumb-init](https://github.com/Yelp/dumb-init) as PID 1 which forwards signals to all processes running in the container. \n\n## Example Usage\n\n**Start a interactive Bash Shell (default)**\n\n`docker run -it ellerbrock/bash-it`\n\n**Use your local `~/.bashrc` settings inside the Container (:ro for read only)**\n\n`docker run -it -v ~/.bashrc:/home/bashit/.bashrc:ro ellerbrock/bash-it`\n\n**Map the current directory inside the Container**\n\n`docker run -it ${PWD}:/data ellerbrock/bash-it`\n\n**Map a [Docker Volume](https://docs.docker.com/engine/tutorials/dockervolumes/)**\n\n`docker run -it myVolName:/app ellerbrock/bash-it`\n\n**Copy Data between Volumes**\n\n```\ndocker run -it \\\n  -v import:/import \\\n  -v export:/export \\\n ellerbrock/bash-it -c \"cp -R /import/* /export\"\n```\n\n**Backup a Volume to Disk**\n\n```\ndocker run -it \\\n  -v import:/import \\\n  -v ${PWD}:/export \\\nellerbrock/bash-it -c \"tar -cvjf /export/backup.tar.bz2 /import/\"\n```\n\n**Run a Command**\n\n`docker run -it ellerbrock/bash-it -c \"ls -alF /\"`\n\n**Run as root**\n\n`docker run -it -u root ellerbrock/bash-it`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash-it%2Fbash-it-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbash-it%2Fbash-it-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbash-it%2Fbash-it-docker/lists"}