Skip to content

Pobb/docket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
POB
Sep 15, 2020
e6b2a32 · Sep 15, 2020

History

11 Commits
Sep 15, 2020
Mar 6, 2020
Mar 20, 2020

Repository files navigation

Docket

Your docker container in the pocket ! Go to a container in bash with one command line and keyboard. Bash or ruby version are available. Forget to "docker ps", choose your container name, and "docker exec -it my_container bash". Docket do it for you. Enjoy !

Installation

  • Bash version : just put the bash file where you want on your computer

  • Ruby version : you have to install "cli-ui" gem :

$ gem install "cli-ui"

How to use ?

Bash

Using the following command, you'll be connected with the default user defined in the image:

# Bash version
$ bash docket.sh

You can also choose a specific user passing it in argument:

$ bash docket.sh root

Ruby

$ ruby docket.rb

Docket in action

Recordit GIF

What next ?

Edit your .bashrc or .zshrc file, create an alias to "Docket it" :

# bashrc / zshrc / whatever
$ alias docket="/bin/bash docket.sh"