Skip to content

Instantly share code, notes, and snippets.

@mmkhitaryan
Last active October 27, 2020 06:30
Show Gist options
  • Save mmkhitaryan/1cab4941a832eee3d9753c5d2f3b460e to your computer and use it in GitHub Desktop.
Save mmkhitaryan/1cab4941a832eee3d9753c5d2f3b460e to your computer and use it in GitHub Desktop.
fish function to dockerify current directory ~/.config/fish/config.fish. Its not only useful, but also you can use it not to garbage host OS with all the different language versions and dependencies. Also you get better security because a malware dependency won't harm HOST OS.
function dockerify
sudo docker run -v (pwd):/home/ -w /home/ -it $argv /bin/bash
end
dockerify python
or
dockerify node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment