Skip to content

Bash-it/bash-it-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker

bash-it-docker

Bash Shell v4.4 with Bash-it, bats and bash-completion based on Alpine Linux

Build Status Docker Automated Build Docker Pulls Quay Status Open Source Love Gitter Chat

Info

Consider this Repository as Work in Progress.

You can find Documentation how to use and setup Bash-it in the Main Repository.
Please open only issues related to Docker in this Repository.

Installation

docker pull ellerbrock/bash-it

Example Usage

Start a interactive Bash Shell (default)

docker run -it ellerbrock/bash-it

Use your local ~/.bashrc settings inside the Container (:ro for read only)

docker run -it -v ~/.bashrc:/root/.bashrc:ro ellerbrock/bash-it

Map the current directory inside the Container

docker run -it ${PWD}:/data ellerbrock/bash-it

Map a Docker Volume

docker run -it myVolName:/app ellerbrock/bash-it

Copy Data between Volumes

docker run -it \
  -v import:/import \
  -v export:/export \
 ellerbrock/bash-it -c "cp -R /import/* /export"

Backup a Volume to Disk

docker run -it \
  -v import:/import \
  -v ${PWD}:/export \
ellerbrock/bash-it -c "tar -cvjf /export/backup.tar.bz2 /import/"

Run a Command

docker run -it ellerbrock/bash-it -c "ls -alF /"

About

Bash-it as a Docker container/image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published