Skip to content

Instantly share code, notes, and snippets.

@kimsible
Last active March 14, 2017 21:08
Show Gist options
  • Save kimsible/bf090cdf0db5da2359b7 to your computer and use it in GitHub Desktop.
Save kimsible/bf090cdf0db5da2359b7 to your computer and use it in GitHub Desktop.
# Download & Install
- Babun Shell : http://babun.github.io
a Shell env for Windows based on Cygwin with lots of Unix tools like oh-my-zsh / git / vim / nano / ssh / wget / curl ...
- Chocolately : https://chocolatey.org
a package manager
- Atom Editor : https://atom.io
a modern text editor like Sublime Text
- WinScp : https://winscp.net
a sftp graphical client
- Boot2docker : https://github.com/boot2docker/windows-installer/releases/latest
Docker Client for Windows
All configurations can be done in a Babun Terminal
# Configure git
$ git config --global user.name "your name"
$ git config --global user.email "your@email.com"
# Configure SSH keys
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
$ eval $(ssh-agent -s)
$ ssh-add ~/.ssh/id_rsa
$ clip < ~/.ssh/id_rsa.pub
# the keys are copied in the clipboard, paste them into Github
more on https://help.github.com/articles/generating-ssh-keys/
# Configure Boot2docker
$ boot2docker init
$ boot2docker up
$ eval "$(boot2docker shellinit)"
more on https://github.com/boot2docker/boot2docker
In Babun, don't use command like
$ docker exec/run -it [container]
Alternatively use ssh
$ boot2docker ssh
$ ssh root@localhost:portContainer
docker-compose in only available in the boot2docker-vm, you can install it manually with python :
http://blog.eisele.net/2015/06/docker-compose-on-windows-with-python.html
or with these commands :
$ boot2docker ssh
$ echo 'su docker -c "tce-load -wi python" && curl https://bootstrap.pypa.io/get-pip.py | python - && pip install -U docker-compose' | sudo tee /var/lib/boot2docker/bootlocal.sh > /dev/null && sudo chmod +x /var/lib/boot2docker/bootlocal.sh
$ boot2docker poweroff
$ boot2docker up
Access to the boot2docker-vm shared folders :
$ boot2docker ssh
$ cd /c/Users/docker
$ docker-compose ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment