Code Monkey home page Code Monkey logo

windows-installer's Introduction

DEPRECATED

Boot2Docker is officially deprecated and unmaintained. It is recommended that users transition from Boot2Docker over to Docker Desktop instead (especially with the new WSL2 backend, which supports Windows 10 Home).

These days there are a lot of tools designed to help spin up environments, and it's relatively easy to get something up and running with Docker installed with minimal effort.

Boot2Docker

Build Status

Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs completely from RAM, is a ~45MB download and boots quickly.

Features

  • Recent Linux Kernel, Docker pre-installed and ready-to-use
  • VM guest additions (VirtualBox, Parallels, VMware, XenServer)
  • Container persistence via disk automount on /var/lib/docker
  • SSH keys persistence via disk automount

Note: Boot2Docker uses port 2376, the registered IANA Docker TLS port

Caveat Emptor

Boot2Docker is designed and tuned for development. Using it for any kind of production workloads is highly discouraged.

Installation

Installation should be performed via Docker Toolbox which installs Docker Machine, the Boot2Docker VM, and other necessary tools.

The ISO can be downloaded here.

How to use

Boot2Docker is used via Docker Machine (installed as part of Docker Toolbox) which leverages VirtualBox's VBoxManage to initialise, start, stop and delete the VM right from the command line.

More information

See Frequently asked questions for more details.

Boot script log

The bootup script output is logged to /boot.log, so you can see (and potentially debug) what happens. Note that this is not persistent between boots because we're logging from before the persistence partition is mounted (and it may not exist at all).

Docker daemon options

If you need to customize the options used to start the Docker daemon, you can do so by adding entries to the /var/lib/boot2docker/profile file on the persistent partition inside the Boot2Docker virtual machine. Then restart the daemon.

The following example will enable core dumps inside containers, but you can specify any other options you may need.

docker-machine ssh default -t sudo vi /var/lib/boot2docker/profile
# Add something like:
#     EXTRA_ARGS="--default-ulimit core=-1"
docker-machine restart default

Installing secure Registry certificates

As discussed in the Docker Engine documentation certificates should be placed at /etc/docker/certs.d/hostname/ca.crt where hostname is your Registry server's hostname.

docker-machine scp certfile default:ca.crt
docker-machine ssh default
sudo mv ~/ca.crt /etc/docker/certs.d/hostname/ca.crt
exit
docker-machine restart

Alternatively the older Boot2Docker method can be used and you can add your Registry server's public certificate (in .pem or .crt format) into the /var/lib/boot2docker/certs/ directory, and Boot2Docker will automatically load it from the persistence partition at boot.

You may need to add several certificates (as separate .pem or .crt files) to this directory, depending on the CA signing chain used for your certificate.

Insecure Registry

As of Docker version 1.3.1, if your registry doesn't support HTTPS, you must add it as an insecure registry.

$ docker-machine ssh default "echo $'EXTRA_ARGS=\"--insecure-registry <YOUR INSECURE HOST>\"' | sudo tee -a /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"

then you should be able to do a docker push/pull.

Running behind a VPN (Cisco AnyConnect, etc)

So sometimes if you are behind a VPN, you'll get an i/o timeout error. The current work around is to forward the port in the boot2docker-vm.

If you get an error like the following:

Sending build context to Docker daemon
2014/11/19 13:53:33 Post https://192.168.59.103:2376/v1.15/build?rm=1&t=your-tag: dial tcp 192.168.59.103:2376: i/o timeout

That means you have to forward port 2376, which can be done like so:

  • Open VirtualBox
  • Open Settings > Network for your 'default' VM
  • Select the adapter that is 'Attached To': 'NAT' and click 'Port Forwarding'.
  • Add a new rule:
    • Protocol: TCP
    • Host IP: 127.0.0.1
    • Host Port: 5555
    • Guest Port: 2376
  • Set DOCKER_HOST to 'tcp://127.0.0.1:5555'

SSH into VM

$ docker-machine ssh default

Docker Machine auto logs in using the generated SSH key, but if you want to SSH into the machine manually (or you're not using a Docker Machine managed VM), the credentials are:

user: docker
pass: tcuser

Persist data

Boot2docker uses Tiny Core Linux, which runs from RAM and so does not persist filesystem changes by default.

When you run docker-machine, the tool auto-creates a disk that will be automounted and used to persist your docker data in /var/lib/docker and /var/lib/boot2docker. This virtual disk will be removed when you run docker-machine delete default. It will also persist the SSH keys of the machine. Changes outside of these directories will be lost after powering down or restarting the VM.

If you are not using the Docker Machine management tool, you can create an ext4 formatted partition with the label boot2docker-data (mkfs.ext4 -L boot2docker-data /dev/sdX5) to your VM or host, and Boot2Docker will automount it on /mnt/sdX and then softlink /mnt/sdX/var/lib/docker to /var/lib/docker.

windows-installer's People

Contributors

ahmetb avatar bfirsh avatar huslage avatar kramos avatar pirog avatar svendowideit avatar thewtex avatar tianon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-installer's Issues

copy files from local machine to boot2docker

Hi,

I am not able to copy any file from my machine to boot2docker running on windows machine , how to do this? I am facing difficulty to deploy my war in docker wildfly container due to this.

Thanks,
Priya

Boot2Docker having problem with VirtualBox 4.3.14 on Windows 7 64-bit

When I start with shortcut Boot2Docker Start, it always happen

Failed to start machine "boot2docker-vm" (run again with -v for details)
VM "boot2docker-vm" is not running.

When I open my VirtualBox and start boot2docker-vm manually it shown

Error relaunching VirtualBox VM process: 5
Command line: '81954AF5-4D2F-31EB-A142-B7AF187A1C41-suplib-2ndchild--comment boot2docker-vm --startvm d480ee36-2c78-4fab-bde0-221f98449e7f --no-startvm-errormsgbox' (rc=-104)

After I click abort on that dialog it shown

Failed to open a session for the virtual machine boot2docker-vm.
The virtual machine 'boot2docker-vm' has terminated unexpectedly during startup with exit code 1.
Result Code: 
E_FAIL (0x80004005)
Component: 
Machine
Interface: 
IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

I think it is bug only VirtualBox 4.3.14 because if I installed VirtualBox 4.3.12 that bundled with installation it work fine.

uninstall/install new boot2docker will not install new iso

Even uninstall the boot2docker old version and install the new version, the version is not changed.

It is because that uninstall command will not remove ~/.boot2docker directory which contain boot2docker.iso

Therefore during the new installation phase, start.sh detects the ~/.boot2docker/boot2docker.iso exists, then the copy/download will not happen.

Suggest to remove boot2docker VM in virtualbox and ~/.boot2docker directory completely, or at least give remind.

Or update the script to add a check if there are new iso, then replace it. (like upgrade)

won't start in windows

if clicking the shortcut, it opens a window asking to associate ".sh" with a program.

I tried to run the script in the git bash shell, but then it complains about commands not found.

how can I get it working??

tx

Port forwarding boot2docker 1.2.0

Hello,

I got an issue when I try to ping my nginx container from my computer.
What I do for my test :

Go in the docker-vm :

`{ ~ }  » boot2docker ssh                                                                      ~ 1
boot2docker: 1.2.0
             3.16.1-config-file : e75396e - Fri Aug 22 06:45:30 UTC 2014
docker@boot2docker:~$ docker -v
Docker version 1.2.0, build fa7b24f
docker@boot2docker:~$ docker run -Pd nginx
5a2d49cd85c1a4426c4421e796fb872ef0b4fe0efad4ff2b2c39464f333f6dad
docker@boot2docker:~$ docker ps
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS                                           NAMES
5a2d49cd85c1        nginx:latest        "nginx -g 'daemon of   3 seconds ago       Up 3 seconds        0.0.0.0:49157->443/tcp, 0.0.0.0:49158->80/tcp   focused_fermi

docker@boot2docker:~$ curl -I localhost:49158
HTTP/1.1 200 OK
Server: nginx/1.7.5

docker@boot2docker:~$ exit

So it's working in the VM, but when I go out :

{ ~ }  » boot2docker ip                                                                         ~
The VM's Host only interface IP address is: 192.168.59.103
{ ~ }  » curl -v 192.168.59.103:49158                                                       ~ 130
* STATE: INIT => CONNECT handle 0x8001f458; line 1026 (connection #-5000)
* Rebuilt URL to: 192.168.59.103:49158/
* Hostname was NOT found in DNS cache
*   Trying 192.168.59.103...
* STATE: CONNECT => WAITCONNECT handle 0x8001f458; line 1073 (connection #0)

No response...

After this first test, I add a rule for the VM and I restart it :
docker

But still the same result..

{ ~ }  » curl -v 192.168.59.103:49158                                                           ~
* STATE: INIT => CONNECT handle 0x8001f458; line 1026 (connection #-5000)
* Rebuilt URL to: 192.168.59.103:49158/
* Hostname was NOT found in DNS cache
*   Trying 192.168.59.103...
* STATE: CONNECT => WAITCONNECT handle 0x8001f458; line 1073 (connection #0)

What did I wrong?
Thanks in advance for your help

Windows 7 64 bit: first attempt at install did not work - how do I cleanly uninstall?

I already have VirtualBox on my laptop for vagrant - it works fine.

I go to install boot2docker - it failed, see below:

Welcome to Git (version 1.9.0-preview20140217)

Run 'git help git' to display the help index.
Run 'git help ' to display help for specific commands.
copying initial boot2docker.iso (run 'boot2docker.exe download' to update
initializing...
Generating public/private rsa key pair.
Your identification has been saved in c:\Users\sg0218049.ssh\id_boot2docker.
Your public key has been saved in c:\Users\sg0218049.ssh\id_boot2docker.pub.
The key fingerprint is:
9b:2c:1d:4a:47:66:4c:8a:b6:0b:43:7b:55:d3:2c:af SG0218049@H8460305330995
2014/07/22 11:02:52 Creating VM boot2docker-vm...
2014/07/22 11:02:52 Apply interim patch to VM boot2docker-vm (https://www.virtua
lbox.org/ticket/12748)
2014/07/22 11:02:52 Failed to modify VM "boot2docker-vm": exit status 1
starting...
2014/07/22 11:02:53 Waiting for VM to be started...
.............................
2014/07/22 11:03:52 Started.
2014/07/22 11:03:52 Trying to get IP one more time
2014/07/22 11:03:52 exit status 255
2014/07/22 11:03:52 Docker client does not run on Windows for now. Please use
2014/07/22 11:03:52 "c:\Program Files\Boot2Docker for Windows\boot2docker.ex
e" ssh
2014/07/22 11:03:52 to SSH into the VM instead.
connecting...
Bad port '0'
2014/07/22 11:03:53 exit status 255

I then tried 'Uninstall Boot2Docker for Windows" and I get the message: "Some elements could not be removed. These can be removed manually" Which elements?

exec: "ssh": executable file not found in %PATH%

I've used installer v1.1.2
I get:

2014/08/09 16:21:41 Waiting for VM to be started...
.......2014/08/09 16:22:03 exec: "ssh": executable file not found in %PATH%

2014/08/09 16:22:03 Started.
2014/08/09 16:22:04 Trying to get IP one more time
2014/08/09 16:22:04 exec: "ssh": executable file not found in %PATH%
2014/08/09 16:22:04 Docker client does not run on Windows for now. Please use
2014/08/09 16:22:04 "e:\Programme\Boot2Docker for Windows\boot2docker.exe" ssh
2014/08/09 16:22:04 to SSH into the VM instead.
connecting...
2014/08/09 16:22:04 exec: "ssh": executable file not found in %PATH%

as in #19
I think the problem ist the installation path. I installed boot2docker in
E:\Programme\Boot2Docker for Windows

I've added
B2DPATH=${B2DPATH//E:///e/}
in start.sh then it works.

Fail to boot docker on windows 8 with error "Shared folder named 'c/Users' already exists"

2014/10/19 11:55:28 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machinereadable
2014/10/19 11:55:29 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPre
fix /
2014/10/19 11:55:29 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir
/
2014/10/19 11:55:29 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe sharedfolder add boot2docker-vm --name c/Users --hostpath C:\Users --automou
nt
VBoxManage.exe: error: Shared folder named 'c/Users' already exists
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostpath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp
2014/10/19 11:55:29 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata boot2docker-vm VBoxInternal2/SharedFoldersEnableSymlinksCreate/
c/Users 1
2014/10/19 11:55:29 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm boot2docker-vm --type headless
VBoxManage.exe: error: VT-x is disabled in the BIOS. (VERR_VMX_MSR_VMXON_DISABLED)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Console, interface IConsole
2014/10/19 11:55:32 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machinereadable
error in run: Failed to start machine "boot2docker-vm" (run again with -v for details)

Errors when starting b2d on Windows 7

Using Windows 7. Installed VirtualBox 4.3.16 as mentioned as possible solution in another issue.

>boot2docker start -v
Boot2Docker-cli version: v1.3.2
Git commit: e41a9ae
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machinereadable
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix /
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe sharedfolder add boot2docker-vm --name c/Users --hostpath C:\Users --automount
VBoxManage.exe: error: Shared folder named 'c/Users' already exists
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostpath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata boot2docker-vm VBoxInternal2/SharedFoldersEnableSymlinksCreate/c/Users 1
2014/12/04 15:35:51 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm boot2docker-vm --type headless
Waiting for VM "boot2docker-vm" to power on...

>boot2docker start
error in run: Failed to start machine "boot2docker-vm": exit status 1

>boot2docker start

VBoxManage.exe: error: Unable to load R3 module

Hello everyone.
I have get an error when I start docker,and I have no idea to resolve it.Please help me to find the reason,I'll thank you so much.The details error information is:
Boot2Docker-cli version: v1.3.0
Git commit: deafc19
2014/10/27 09:50:04 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
showvminfo boot2docker-vm --machinereadable
2014/10/27 09:50:05 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountPrefix
/
2014/10/27 09:50:05 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
guestproperty set boot2docker-vm /VirtualBox/GuestAdd/SharedFolders/MountDir /
2014/10/27 09:50:05 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
sharedfolder add boot2docker-vm --name c/Users --hostpath C:\Users --automount
VBoxManage.exe: error: Shared folder named 'c/Users' already exists
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_IN_USE (0x80bb000c), componen
t SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "CreateSharedFolder(Bstr(name).raw(), Bstr(hostp
ath).raw(), fWritable, fAutoMount)" at line 1009 of file VBoxManageMisc.cpp
2014/10/27 09:50:05 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
setextradata boot2docker-vm VBoxInternal2/SharedFoldersEnableSymlinksCreate/c/U
sers 1
2014/10/27 09:50:05 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
startvm boot2docker-vm --type headless
Waiting for VM "boot2docker-vm" to power on...
VBoxManage.exe: error: Unable to load R3 module C:\Program Files\Oracle\VirtualB
ox/VBoxDD.DLL (VBoxDD): GetLastError=1790 (VERR_UNRESOLVED_ERROR)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Console, int
erface IConsole
2014/10/27 09:50:07 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
showvminfo boot2docker-vm --machinereadable
error in run: Failed to start machine "boot2docker-vm" (run again with -v for de
tails)

windows repeated start menu issues

Maybe it is an issue caused by Windows, but I decides to fire the issue here (at first).

In details:

I am running Windows 8.1.

(I installed official git before I installed docker.) Official git from git-scm.com would create two items "Git Bash" and "Git GUI" in the menu "Git" in start menu (Well, Windows 8.1 changes start menu since Windows 7, but you should know what am I talking about :-) ).

And docker-install.exe (v1.0.0) from here would create five links in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Docker and
a link in C:\ProgramData\Microsoft\Windows\Start Menu\Programs.

The problem is, it seems that Windows(8.1) try to remove the repeated items in its start menu.

So, in start menu, ...\Start Menu\Programs\Boot2Docker Start.lnk would appear, while ...\Start Menu\Programs\Docker\DockerBoot2Docker Start.lnk and ...\Start Menu\Programs\Docker\Uninstall Boot2Docker for Windows.lnk would not appear (in my case).

Similarly, ...\Start Menu\Programs\Docker\Unix Bash.lnk appears in start menu, which causes C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Git\Git Bash.lnk disappears!

Hope I have explained the issue clearly. Well, maybe it should be considered a feature rather than a bug. I notice this issue because I often use "Git Bash" in start menu.

Windows 8.1 prof (64 bit), not able to run Boot2Docker

Downloaded Windows installer from below:
https://github.com/boot2docker/windows-installer/releases/tag/v1.1.1

Uninstalled git and GitHub for windows from my system. Oracle Virtualbox is alreay installed in my system, I did not uninstall it.

Completely installed boot2docker and restarted the system.

On desktop, when click "Boot2Docker Start" link, it opens in my NotePad++. The file is:
C:\Program Files\Boot2Docker for Windows\start.sh

on Command prompt, if start command is given, the following message is displayed:
C:\Users\Ajit>boot2docker start
2014/07/18 16:33:43 Failed to get machine "boot2docker-vm": machine does not exist

Missing quotes in printed command

The message printed by boot2docker up should include quotes around the executable path for simple copy/paste, as it might contain spaces.

>"C:\Program Files\Boot2Docker for Windows\boot2docker.exe" up
2014/06/19 10:16:18 Waiting for VM to be started...
............
2014/06/19 10:16:42 Started.
2014/06/19 10:16:42 Docker client does not run on Windows for now. Please use
2014/06/19 10:16:42     C:\Program Files\Boot2Docker for Windows\boot2docker.exe ssh
2014/06/19 10:16:42 to SSH into the VM instead.

>C:\Program Files\Boot2Docker for Windows\boot2docker.exe ssh
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

>"C:\Program Files\Boot2Docker for Windows\boot2docker.exe" ssh

Add b2d alias to PATH

Please consider adding another binary in %PATH% called b2d, this would make things easier (e.g. kubernetes -> k8s). I don't know how to do that in Windows but alias command may help if there was a way to run certain scripts when cmd.exe/powershell starts from anywhere.

Can't get IP of VM using command line

Getting the following error:

C:\Program Files\Boot2Docker for Windows>boot2docker.exe ip
2014/06/27 12:34:28 exec: "ssh": executable file not found in %PATH%

Failed to get VM Host only IP address.
Was the VM initilized using boot2docker?

The fact "boot2docker ip" doesn't work on windows by default is a pain.

I tried on .103 and it worked, but this is pure luck....

When doing a netstat -r you see the entire address range is going to .3 , which must be the external VM address.
192.168.59.0 255.255.255.0 On-link 192.168.59.3
192.168.59.3 255.255.255.255 On-link 192.168.59.3
192.168.59.255 255.255.255.255 On-link 192.168.59.3

Finding out that the ultimate address is 103 is a challenge I couldn't solve, what is the solution?

docker info on the image doesn't give the IP either

Cannot launch docker on Windows 7

I followed the installation instructions at https://docs.docker.com/installation/#installation and installed Docker via docker-install.exe. When I launch docker, I get this:

initializing...
error in run: Failed to initialize machine "boot2docker-vm": exec: "C:\Program
Files\Oracle\VirtualBox\VBoxManage.exe": file does not exist
starting...
error in run: Failed to get machine "boot2docker-vm": exec: "C:\Program Files
Oracle\VirtualBox\VBoxManage.exe": file does not exist
connecting...
error in run: Failed to get machine "boot2docker-vm": exec: "C:\Program Files
Oracle\VirtualBox\VBoxManage.exe": file does not exist

[Hit a key to exit]

Port Forwarding for Some Port Names Causes Boot2docker to Fail to Start

When forwarding a port in virtualbox so that I can see a port on a container, if the name of the port forwarding rule comes before "ssh" alphabetically, boot2docker will fail to start. I created a rule for a redis server (:6379) and named it redis. When boot2docker tries to ssh into the vm it passes 6379 as the -p argument instead of :2022. If I modify the name of the rule to "zzz", the correct port is passed to the ssh command. The below is the console output

Defined a port forwarding rule with name of redis that mapped 0.0.0.0:6379 -> 6379 in the vm.

2014/07/08 16:31:29 executing: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 6379
-i C:\Users\jdonnelly.ssh\id_boot2docker docker@localhost
2014/07/08 16:31:30 exit status 255

I changed the port forwarding rule name from redis to zzzz here.

PS C:\Program Files\Boot2Docker for Windows> .\boot2docker.exe -v ssh
2014/07/08 16:32:57 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machineread
able
2014/07/08 16:32:57 executing: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022
-i C:\Users\jdonnelly.ssh\id_boot2docker docker@localhost
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
____
o */
\ \ /
*
_____/


| |__ ___ ___ | ||__ \ | | ___ ___| | ___ _ __
| '_ \ / _ \ / _ | | __) / _` |/ _ \ / __| |/ / _ \ '|
| |) | () | () | | / / (| | () | (| < / |
|_.
/ / _/ __|,|/ _||_|_|
boot2docker: 1.1.0
master : 086c429 - Fri Jul 4 01:08:20 UTC 2014
docker@boot2docker:~$ exit

boot2docker not found

I followed the instruction from this link https://docs.docker.com/installation/windows/. I ran the "Boot2Docker Start" script and I was able to "docker run hello-world" correctly.

However, "./boot2docker" is not available (I'm in the "/home/docker" directory). In this directory, I have a "boot2docker, please format-me" file/dir (the attributes contain only dashes "----------"). I also cannot continue with the "docker run --rm -i -t -p 80:80 nginx" (the command seems to be caught in a loop, but I'm able to Ctrl-C and return to the prompt). I also cannot do "boot2docker ip" as all I get is "-sh: boot2docker: not found"

Docker itself seems to work fine as I'm able to do all of the steps in https://docs.docker.com/userguide/dockerizing/.

Any help/hint you can provide is appreciated. Thanks...

Delete VM Fails silently

Run Delete Boot2Docker VM from start menu.

screenshot 2014-06-07 11 57 05

No vbox commands are in the process list. VM is deleted, but the script never got the message.

screenshot 2014-06-07 12 00 26

error: boot2docker: not found

in windows when starting boot2docker, typing boot2docker gives error: " not found"
how come?

| |__ ___ ___ | ||__ \ | | ___ ___| | ___ _ __
| '_ \ / _ \ / _ | | __) / _` |/ _ \ / __| |/ / _ \ '|
| |) | () | () | | / / (| | () | (| < / |
|_.
/ / _/ __|,|/ _||_|_|
boot2docker: 1.0.1
master : cad5ece - Fri Jun 20 02:03:40 UTC 2014
docker@boot2docker:$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bcae7ee69b05 peefour/bp:latest /usr/sbin/start.sh 33 minutes ago Up 33 minutes 0.0.0.0:49153->12320/tcp, 0.0.0.0:49154->12321/tcp, 0.0.0.0:49155->12322/tcp, 0.0.0.0:49156->22/tcp, 0.0.0.0:49157->443/tcp, 0.0.0.0:49158->80/tcp insane_ardinghelli
docker@boot2docker:
$ boot2docker
-sh: boot2docker: not found
docker@boot2docker:~$

VirtualBox selected to install but did not install

On a Win7 machine, ran the v1.2.0 install with VirtualBox selected.

After installation, when I ran Boot2Docker start, an error specified it could not find the VirtuallBox executable (displaying the path to the executable). When i checked for that directory, it had not been created.

The VirtualBox 4.3.12 .msi file was in the Boot2Docker for Windows directory.

I had also previously downloaded the current VirtualBox 4.3.16 .msi file, which I installed instead of 4.3.12, and Boot2Docker ran with no further problems.

[UX] add the same info links and hints to the 'finished' installing page as in OSX-installer

  • Quick-Start: Run Boot2Docker (located in Applications), which will open a terminal window. Then, start a test container with:
    docker run hello-world
  • To save and share container images, automate workflows, and more sign-up for a free Docker Hub account.
  • You can upgrade your existing Boot2Docker VM without data loss by running:
    boot2docker upgrade

Cannot ssh / Couldn't reserve space for cygwin's heap

C:\Users\darth>boot2docker init
2014/07/10 12:18:06 Creating VM boot2docker-vm...
2014/07/10 12:18:06 Apply interim patch to VM boot2docker-vm (https://www.virtualbox.org/ticket/12748)
2014/07/10 12:18:06 Setting NIC #1 to use NAT network...
2014/07/10 12:18:07 Port forwarding [ssh] tcp://127.0.0.1:2022 --> :22
2014/07/10 12:18:07 Port forwarding [docker] tcp://127.0.0.1:2375 --> :2375
2014/07/10 12:18:07 Setting NIC #2 to use host-only network "VirtualBox Host-Only Ethernet Adapter #2"...
2014/07/10 12:18:07 Setting VM storage...
2014/07/10 12:18:17 Done. Type `boot2docker up` to start the VM.

C:\Users\darth>boot2docker status
poweroff

C:\Users\darth>boot2docker up
2014/07/10 12:18:30 Waiting for VM to be started...
............2014/07/10 12:19:06 exit status 1

2014/07/10 12:19:06 Started.
2014/07/10 12:19:06   Trying to get IP one more time
2014/07/10 12:19:07 exit status 1
2014/07/10 12:19:07 Docker client does not run on Windows for now. Please use
2014/07/10 12:19:07     "boot2docker" ssh
2014/07/10 12:19:07 to SSH into the VM instead.

C:\Users\darth>boot2docker ssh
      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x4A0000, State 0x10000
C:\Users\darth\AppData\Local\GitHub\PortableGit_054f2e797ebafd44a30203088cd3d58663c627ef\bin\ssh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
2014/07/10 12:19:19 exit status 1

During installation of boot2docket I did mark MSYS Git and Virtual Box I had already from before.

boot2docker-vm is not working on Windows 7 64 bit machine

I just tried the Docker v1.1.2

https://github.com/boot2docker/windows-installer/releases

However installation failed with:

2014/08/12 16:15:44 Failed to start machine "boot2docker-vm" (run again with -v
for details)
connecting...
2014/08/12 16:15:44 VM "boot2docker-vm" is not running.

Also tried "boot2docker init" followed by "boot2docker up". Same issue happeded:

c:\docker\boot2docker>boot2docker up
2014/08/12 16:25:14 Failed to start machine "boot2docker-vm" (run again with -v
for details)

Cannot find boot2docker-vm either.

Windows7 64bit : Failed to start machine "boot2docker-vm"

I Failed to start machine "boot2docker-vm".
so... I ran again with -v for details.

C:\Users\Administrator>boot2docker.exe start -v
2014/07/25 14:36:09 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machinereadable
2014/07/25 14:36:11 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm boot2docker-vm --type headless
Waiting for VM "boot2docker-vm" to power on...
VBoxManage.exe: error: The virtual machine 'boot2docker-vm' has terminated unexpectedly during startup with exit code 1
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Machine, interface IMachine
2014/07/25 14:36:13 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machinereadable
2014/07/25 14:36:13 Failed to start machine "boot2docker-vm" (run again with -v for details)

Start fails with VT-x not supported error when Hyper-V is enabled

This is more a VirtualBox issue than it is a boot2docker problem, but might be helpful to add it to the FAQ or documentation.

In order to run boot2docker on Windows you need to have a cpu with VT-x and must not have the hyper-v feature installed, otherwise virtualbox refuses to start the VM with this message:

2014/06/11 22:19:04 Failed to start machine "boot2docker-vm" (run again with -v
for details)

Maybe the installer could check for an installed Hyper-V and warn about it, didn't see an obvious way to check for installed windows features in InnoSetup though.

running docker on windows

Hi,

I have downloaded windows installer for docker and restarted my system, but seems something went wrong and while starting up boot2docker it gives:

2014/08/04 11:38:26 Docker client does not run on Windows for now. Please use
2014/08/04 11:38:26 "boot2docker" ssh
2014/08/04 11:38:26 to SSH into the VM instead.

What does that mean, is it not supported by windows yet?

Any clarification on this will be really helpful.

Thanks,
Priyanka

what to do after I installed b2d

Also there was no feedback about what to do after I installed b2d. There weren't links on my start menu or in my quicklaunch or on my desktop, so I had to go hunt.

Installation of 1.3.0, it still reports versions as 1.2.0

Hi,

Installing 1.3.0 , it reports everything still at 1.2..0 level:

              ## ## ##       ==
           ## ## ## ##      ===
       /""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
       \______ o          __/
         \    \        __/
          \____\______/

| |__ ___ ___ | ||__ \ | | ___ ___| | ___ _ __
| '_ \ / _ \ / _ | | __) / _` |/ _ \ / __| |/ / _ \ '|
| |) | () | () | | / / (| | () | (| < / |
|_.
/ / _/ __|,|/ _||_|_|
boot2docker: 1.2.0
3.16.1-config-file : e75396e - Fri Aug 22 06:45:30 UTC 2014
docker@boot2docker:$ docker version
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
Git commit (server): fa7b24f
docker@boot2docker:
$

I did an install of 1.3.0 over 1.2.0 with this result, then completely uninstalled Boot2Docker and did a clean installation, and the same result

Ideas?

can't find boot2docker.iso in fresh 1.1.0 install

I download the latest 1.1.0 installer, and try to install from clean base. But it reports

cp: cannot stat `/boot2docker.iso`: No such file or .......

since I have firewall, it is not able to download correctly. And the boot2docker.iso do exist under C:\Program Files\Boot2Docker for Windows

I tried 1.0.1 installer, that release is ok.

If I keep the 1.0.1 release there (keep ~/.boot2docker/boot2docker.iso), the 1.1.0 can be installed but the version is 1.0.1 still

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.