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 !
-
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"
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 docket.rb
Edit your .bashrc or .zshrc file, create an alias to "Docket it" :
# bashrc / zshrc / whatever
$ alias docket="/bin/bash docket.sh"