Update docker install/aliases

This commit is contained in:
Henrik Lissner 2016-10-27 15:32:50 +02:00
parent ef467186e6
commit dd7976769e
2 changed files with 25 additions and 2 deletions

View file

@ -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 dk='docker'
alias dkm='docker-machine'
alias dkc='docker-compose' alias dkc='docker-compose'
alias dki='eval $(docker-machine env)'

View file

@ -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