|
From: Jonathan B. <jon...@gm...> - 2015-02-14 18:56:18
|
Hello everybody, when this here is not the right please for it, then sorry! I found out that it is relative easy to run dockers in msys2, so I wanna share this with you. What you need is: *msys2 64bit** **Virtualbox** **boot2docker-cli* When you have the first both installed you need to download the boot2docker-v1.5.0-windows-amd64.exe from: https://github.com/boot2docker/boot2docker-cli/releases/ After the download place it to somewhere where the msys2 shell will find it. for example under: */usr/bin* and rename it to: *boot2docker.exe* Put the installation folder from virtualbox to the path environment. I use my one profile file, so by me it looks different, you need to adapt it to your profile: [...] VBox="/D/_System/Programme/VirtualBox" PATH=".[...]:${VBox}" [...] In a msys2 shell run: *pacman -S openssh* to install the ssh client. Then run *boot2docker init, *it will setup the vm for you. After that run *boot2docker start. * Now is a bit bad, because normally we can join the docker vm with *boot2docker ssh. *But like this the ssh connection will close after some seconds. So we get the ip with *boot2docker ip *and login manual with ssh docker@IP-Adress for example *ssh docker@192.168.59.104***the password is*tcuser. * Docker init will build normally also a ssh key so we don't need the password, but I don't know at the moment how to use keys in msys2, because ssh-add works not by me. In docker we can run now a linux image for example like: *docker run -it ubuntu:14.04 bash* Maybe it download first the ubuntu image, then it login in ubuntu. And there you can run the normal commends what you now from ubuntu :). Have fun with it! Regards Jonathan |