Skip to content

samkennerly/dockerbash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockerbash

Keeping track of all my containers can be difficult.

tribbles

abstract

Dockerbash is a few short shell scripts which run Docker commands for:

basics

  1. Clone this repo to a folder on your machine.
  2. Open a terminal and cd to that folder.
  3. bin/runit hello-world to run a test container.

Scripts are in the bin folder. You might need to chmod them if they are not executable.

commands

description command
build an image and tag it bake TAG [CONTEXT]
delete all containers and leftovers clean
delete an image and any containers using it delete IMAGE
stop all containers create from an image kill IMAGE
run an interactive, self-destructing container runit [OPTIONS] IMAGE [CMD]
show images, volumes, networks, and containers show

dependencies

  1. Docker for Linux, Mac, or Windows

examples

Build (or rebuild) myimage:v2 with path/to/some/folder as the build context.

bin/bake myimage:v2 path/to/some/folder

Run bash in an interactive, self-destructing myimage:v2 container.

bin/runit myimage:v2 bash

Delete myimage:v2 and any containers descended from it.

bin/delete myimage:v2

Stop all containers descended from myimage:v2.

bin/kill myimage:v2

faq

Where are the official docs?

About

Short shell scripts that run long Docker commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published