Skip to content

Instantly share code, notes, and snippets.

View diegovarussa's full-sized avatar
:octocat:
Do what is right, not what is easy

Diego Varussa diegovarussa

:octocat:
Do what is right, not what is easy
View GitHub Profile
@diegovarussa
diegovarussa / docker_command_console.md
Last active September 16, 2019 12:05
Add docker container as a standard command

Edit file (Mac ~/.bash_profile) (Linux: ~/.bashrc or ~/.zshrc) and add:

your_command_name () {
    tty=
    tty -s && tty=--tty
	docker run \
        $tty \
        --rm \
        your_docker/image "$@"