Update docker install/aliases
This commit is contained in:
parent
ef467186e6
commit
dd7976769e
|
@ -1,4 +1,12 @@
|
|||
case "$OSTYPE" in
|
||||
darwin*)
|
||||
alias dkm='docker-machine'
|
||||
alias dki='eval $(docker-machine env)'
|
||||
;;
|
||||
linux*)
|
||||
alias docker='sudo docker'
|
||||
;;
|
||||
esac
|
||||
|
||||
alias dk='docker'
|
||||
alias dkm='docker-machine'
|
||||
alias dkc='docker-compose'
|
||||
alias dki='eval $(docker-machine env)'
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case "$OSTYPE" in
|
||||
darwin*)
|
||||
brew cask install virtualbox
|
||||
brew install docker docker-compose docker-machine
|
||||
;;
|
||||
linux*)
|
||||
if [[ -f /etc/arch-release ]]
|
||||
then
|
||||
sudo pacman --noconfirm -S docker docker-compose
|
||||
sudo systemctl enable docker.service
|
||||
sudo systemctl start docker.service
|
||||
fi
|
||||
esac
|
Loading…
Reference in a new issue