GithubHelp home page GithubHelp logo

osx-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.

osx-installer's People

Contributors

artiom avatar bfirsh avatar dgageot avatar firemanphil avatar huangsam avatar huslage avatar steeve avatar svendowideit 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

osx-installer's Issues

boot2docker taking long to start

Hi,

I just downloaded Docker for my osx system (OSX 10.8.5). When I either start the boot2docker by clicking the app icon or through command line, the system waits a long time (75 minutes and counting. I now finally have the patience to wait for it) at this stage:
Grange@macgrange:~$ /usr/local/bin/boot2docker up
Waiting for VM and Docker daemon to start...
..........................................................................ooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

(so after it ran out of dots, it started counting with o signs...)

I have the impression that this is not really intended behaviour. Is there any way to improve the run time?

(EDIT: just updated the time it was running...)

1.1.0 Install Failed on Mac OS X 10.9.3

Screenshot:
screen shot 2014-07-07 at 3 45 26 pm

Installer Log:

Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: LSExceptions [0x7f9902c14f90] loaded
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: @(#)PROGRAM:Install PROJECT:Install-846
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: @(#)PROGRAM:Installer PROJECT:Installer-721
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Hardware: MacBookPro10,2 @ 2.60 GHz (x 4), 8192 MB RAM
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Running OS Build: Mac OS X 10.9.3 (13D65)
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: TMPDIR=/var/folders/yg/x5j10jwd211bsp4mqv9p4wcr0000gn/T/
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: SHELL=/bin/zsh
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: HOME=/Users/iano
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: USER=iano
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: LOGNAME=iano
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: SSH_AUTH_SOCK=/tmp/launch-vofNXe/Listeners
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: Apple_PubSub_Socket_Render=/tmp/launch-xSvXUJ/Render
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: COMMAND_MODE=unix2003
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: __CHECKFIX1436934=1
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker for Mac OS X 1.1.0 Installation Log
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Opened from: /Users/iano/Downloads/Boot2Docker-1.1.0.pkg
Jul 7 15:46:38 ianos-MacBook-Pro.local Installer[10421]: Product archive /Users/iano/Downloads/Boot2Docker-1.1.0.pkg trustLevel=202
Jul 7 15:46:39 ianos-MacBook-Pro.local Installer[10421]: JS: Hardware architecture detected: x86_64
Jul 7 15:46:39 ianos-MacBook-Pro.local Installer[10421]: JS: OS version detected: 10.9.3
Jul 7 15:46:40 ianos-MacBook-Pro.local Installer[10421]: JS: system.run /bin/sh .. returned: 1 result=true
Jul 7 15:46:40 ianos-MacBook-Pro.local Installer[10421]: JS: result:true
Jul 7 15:46:41 ianos-MacBook-Pro.local Installer[10421]: InstallerStatusNotifications plugin loaded
Jul 7 15:46:47 ianos-MacBook-Pro.local runner[10428]: Administrator authorization granted.
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: ================================================================================
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: User picked Standard Install
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: Choices selected for installation:
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: Upgrade: "Boot2Docker for Mac OS X"
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: Install: "Docker client for Mac OS X"
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#docker.pkg : io.docker.pkg.docker : 1.1.0
Jul 7 15:46:47 ianos-MacBook-Pro.local Installer[10421]: Install: "Boot2Docker management tool for Mac OS X"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#boot2docker.pkg : io.boot2docker.pkg.boot2docker : 1.1.0
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Install: "Boot2Docker ISO"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#boot2dockeriso.pkg : io.boot2dockeriso.pkg.boot2dockeriso : 1.1.0
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Install: "Boot2docker Quick-start applet for Mac OS X"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#boot2dockerapp.pkg : io.boot2docker.pkg.boot2dockerapp : 1.1.0
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Upgrade: "Oracle VM VirtualBox Kernel Extensions"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#VBoxKEXTs.pkg : org.virtualbox.pkg.vboxkexts : 4.3.8
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Upgrade: "Oracle VM VirtualBox"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#VirtualBox.pkg : org.virtualbox.pkg.virtualbox : 4.3.8
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Upgrade: "Oracle VM VirtualBox Command Line Utilities"
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Boot2Docker-1.1.0.pkg#VirtualBoxCLI.pkg : org.virtualbox.pkg.virtualboxcli : 4.3.8
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: ================================================================================
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: It took 0.00 seconds to summarize the package selections.
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#docker.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#boot2docker.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#boot2dockeriso.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#boot2dockerapp.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#VBoxKEXTs.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#VirtualBox.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#VirtualBoxCLI.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Set authorization level to root for session
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Package file://localhost/Users/iano/Downloads/Boot2Docker-1.1.0.pkg#VirtualBoxCLI.pkg not supported by PK
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Will use IF session
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: PFPackage::packageWithURL - can't instantiate package: /Users/iano/Downloads/Boot2Docker-1.1.0.pkg
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Error opening package "Boot2Docker-1.1.0.pkg#VirtualBoxCLI.pkg".
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Install failed: The Installer could not install the software because there was no software found to install.
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: IFDInstallController 2E5CD80 state = 8
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: Displaying 'Install Failed' UI.
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: 'Install Failed' UI displayed message:'The Installer could not install the software.
The Installer could not install the software because there was no software found to install.'.
Jul 7 15:46:48 ianos-MacBook-Pro.local Installer[10421]: LSExceptions [0x7f9902c14f90] unloaded

Mac OS X docker client 1.2.0 is generating 'panic: runtime error: index out of range'

# Mac OS X 10.9.4

$ docker
panic: runtime error: index out of range

goroutine 16 [running]:
runtime.panic(0x3a96e0, 0x60297c)
    /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
main.main()
    /go/src/github.com/docker/docker/docker/docker.go:99 +0x9ff

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
    /usr/local/go/src/pkg/runtime/mheap.c:507
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
    /usr/local/go/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 20 [runnable]:
os/signal.loop()
    /usr/local/go/src/pkg/os/signal/signal_unix.go:19
created by os/signal.init·1
    /usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32

vbox still running even after b2d stop

even when the gui is not running

which stops the installer

<shykes> (the installer does)
<shykes> I already ran "boot2docker stop"
<shykes> anything else I should do?
<SvenDowideit> stop virtualbox
<SvenDowideit> apparently vbox does not always do what we tell it (in so many places)
<shykes> how?
<shykes> the virtualbox gui doesn't appear to be running
<shykes> should I start it?
<SvenDowideit> oh? shit.
* zhiyan is now known as zhiyan_
<SvenDowideit> thats yet another failure mode then
<SvenDowideit> yeah, try start&stop
<lk4d4> wow, weird thig about entrypoint. It doesn't work for all my images :( I'll try to fix it today
<shykes> looks like that worked
<lk4d4> I think I saw code, that does this thing with #nop ADD
<SvenDowideit> I've not had vbox fail like that, one more issue to the bonfire
<shykes> SvenDowideit: FYI I looked for virtualbox in "applications", opened it, immediatly quit it
<SvenDowideit> sweet, merci
<shykes> it showed only 1 VM in stopped state, which is what I expected

Create b2d alias

Please consider adding another symlink in $PATH called b2d, this would make things easier (e.g. kubernetes -> k8s). I personally use Homebrew to install boot2docker. So it might be better to have in both .pkg and brew formula.

boot2docker binary fails to run

After I've installed boot2docker 1.3.0(and 1.3.1) it fails to run. Output is like this.

bash-3.2$ /usr/local/bin/boot2docker init 
error in run: config error: Near line 1, key '': Near line 1: Expected a top-level item 
to end with a new line, comment or EOF, but got 'M' instead.

This happens for any arguments I pass to the command. I'm running a mac with OS X 10.10.
Is it bug on my side or bug in boot2docker binary?

Please advise.

Can't upgrade via cli from 1.3.0

I tried to boot2docker upgrade also and manually...

Kraftbuch:~ tobias$ boot2docker stop
Kraftbuch:~ tobias$ boot2docker download
Latest release for boot2docker/boot2docker is v1.3.2
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.3.2/boot2docker.iso
    to /Users/tobias/.boot2docker/boot2docker.iso
Kraftbuch:~ tobias$ boot2docker start
Waiting for VM and Docker daemon to start...
................ooo
Started.
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/tobias/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

But it's still the old version.

Kraftbuch:~ tobias$ boot2docker -v
Boot2Docker-cli version: v1.3.0
Git commit: deafc19
Usage: boot2docker [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|socket|shellinit|delete|download|upgrade|version} [<args>]

Workaround: Use the installer package manually.

boot2docker fails after installation

Deleted old version of boot2docker (including VirtualBox) and installed version 1.0.0. After install, ran boot2docker init and got the following output:

2014/06/12 11:31:25 Creating VM boot2docker-vm...
2014/06/12 11:31:26 Apply interim patch to VM boot2docker-vm (https://www.virtualbox.org/ticket/12748)
2014/06/12 11:31:26 Setting NIC #1 to use NAT network...
2014/06/12 11:31:26 Port forwarding [ssh] tcp://127.0.0.1:2022 --> :22
2014/06/12 11:31:26 Port forwarding [docker] tcp://127.0.0.1:2375 --> :2375
2014/06/12 11:31:26 Failed to create host-only network interface: exit status 2

Trying to run the boot2docker image results in the following error being displayed in VirtualBox's preview window:

FATAL: Could not read from the boot medium! System halted.

V1.2 'Upgrade' failed to in saved boot2docker host

Hi,

I just tried the v1.2 installer to use 'boot2docker upgrade' after a 'boot2docker save'.
and once done with no error msg. It seems 'boot2docker upgrade' cannot docker server from 1.13 to 1.14.

iTags-MacBook-Pro:~ ccp999$ boot2docker up
Waiting for VM and Docker daemon to start...
......
Started.
Your DOCKER_HOST env variable is already set correctly.

iTags-MacBook-Pro:~ ccp999$ 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): darwin/amd64
2014/08/23 18:43:28 Error response from daemon: client and server don't have same version (client : 1.14, server: 1.13)

docker ps on mac is returning Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

I've just upgraded to 1.3.0, did a boot2docker upgrade and then:

$ echo $DOCKER_HOST
tcp://192.168.59.103:2375

$ boot2docker version
Boot2Docker-cli version: v1.3.0
Git commit: deafc19

$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
2014/10/17 13:55:03 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

$ boot2docker ssh
                        ##        .
                  ## ## ##       ==
               ## ## ## ##      ===
           /""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
           \______ o          __/
             \    \        __/
              \____\______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
boot2docker: 1.3.0
             master : a083df4 - Thu Oct 16 17:05:03 UTC 2014

docker@boot2docker:~$ ps aux | grep docker
  697 root     /sbin/udhcpc -b -i eth0 -x hostname boot2docker -p /var/run/udhcpc.eth0.pid
  713 root     /sbin/udhcpc -b -i eth1 -x hostname boot2docker -p /var/run/udhcpc.eth1.pid
  765 root     /usr/local/bin/docker -d -D -g /var/lib/docker -H unix:// -H tcp://0.0.0.0:2376 --tlsverify --tlscacert=/var/lib/boot2docker/tls/ca.pem --tlscert=/var/lib/boot2docker/tls/server.pem --tlskey=/var/lib/boot2docker/tls/serverkey.pem

Look like the tcp port is changed from 2375 to 2376? But the mac version wasn't updated somehow? Though the 2376 looks like magic, cause changing $DOCKER_HOST to tcp://192.168.59.103:2376 I'll get:

$ docker ps
2014/10/17 13:57:38 Get http://192.168.59.103:2376/v1.15/containers/json: malformed HTTP response "\x15\x03\x01\x00\x02\x02"

v1.0.0 Crashes My Mac

Running OSX 10.9.3. Downloaded and installed v1.0.0 today fine. But when I run boot2docker for the first time, it brought up my terminal, a bunch of messages flew by, and my system literally crashed. I am not sure where the log file is, but more than happy to provide it if someone points me in the right direction.

I have never installed docker before today.

Thanks,
Ben

uninstaller doesn't remove app

The uninstaller doesn't delete the boot2docker.app. Also, I'm not sure about this, but instead of removing the read receipts directly it might(?) be safer to use the pkgutil command to forget the packages if it exists.

Can not install boot2docker on Mac OS 10.9.4

Downloaded latest 1.3.0 release

docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
2014/10/16 19:56:50 Get http://192.168.59.103:2376/v1.15/version: malformed HTTP response "\x15\x03\x01\x00\x02\x02"

on docker vm (/var/log/docker.log):

2014/10/16 18:16:02 http: TLS handshake error from 192.168.59.3:57797: tls: first record does not look like a TLS handshake

Error Installing on Mac OS X 10.9.3 - No Error Message

I tried running the installer but it says there is an error with installing. I see what looks like a truncated error message in the header where it trails with "You may want to try l" but then the message prints off the window and there's no way I can find to show it (scale the box, etc). I previously had docker installed via homebrew but tried to remove it (also using homebrew) - not sure if there's something related there. boot2docker installed fine.

Getting the right date/time in the container

I have not yet figured out how to get the right date/time when running the container. Is this a problem specific to Mac OSX (running this boot2docker), or is it a general Docker problem?

Upgrading doesn't work

Since I upgraded to latest osx-installer I can't have docker working in my Mac (10.8.3).

Vagrant 1.6.2
VB 4.3.12

Download and run boot2docker from /Applications:

executing: VBoxManage hostonlyif create
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: Failed to execute 'VBoxNetAdpCtl add' (exit status: 768)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg_, int, int_)" at line 66 of file VBoxManageHostonly.cpp
2014/06/19 11:24:47 Failed to create host-only network interface: exit status 1

and

Connecting to tcp://localhost:2022 (attempt #0)
.
2014/06/19 11:25:45 Started.
2014/06/19 11:25:45 Auto detection of the VM's IP address.
~$ docker version
Client version: 1.0.0
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 63fe64c
2014/06/19 11:28:15 Get http://127.0.0.1:2375/v1.12/version: EOF

Any ideas please?

I already tried:

boot2docker delete
boot2docker download
boot2docker init
boot2docker up

and no luck!
I don't know what else to try.

Thanks.

[UX] installation - Summary screen updates

This is the final "Summary" screen for the Mac OSX installer:
image

Three modifications:

  • First Bullet. Let's change "docker run ubuntu echo "Hello world"" to "docker run hello-world" so as to be consistent with Mac OSX documentation.
  • New Bullet (let's place after the first bullet above): "To save and share container images, automate workflows, and more sign-up for a free Docker Hub account." with the "Docker Hub account" link using the existing link style of the installer screen (not this GH markdown style).
  • Let's have consistent, single space between each bullets (like exists now between 1 and 2, and 2 and 3).

Cannot connect to the Docker daemon

Perhaps related to #79 ?

I tried upgrading-in-place, and when that didn't work running uninstall.sh and installing a fresh copy, with the same results (when running the boot2docker app):

bash
unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
mkdir -p ~/.boot2docker
if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
/usr/local/bin/boot2docker init 
/usr/local/bin/boot2docker up 
$(/usr/local/bin/boot2docker shellinit)
docker version
Last login: Fri Oct 17 08:42:38 on ttys001

$ bash
$ unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
$ mkdir -p ~/.boot2docker
$ if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
$ /usr/local/bin/boot2docker init 
Generating public/private rsa key pair.
Your identification has been saved in /Users/robbinsd/.ssh/id_boot2docker.
Your public key has been saved in /Users/robbinsd/.ssh/id_boot2docker.pub.
The key fingerprint is:
<snip>
The key's randomart image is:
<snip>
/usr/local/bin/boot2docker up 
$(/usr/local/bin/boot2docker shellinit)
docker version

$ /usr/local/bin/boot2docker up 
Waiting for VM and Docker daemon to start...
........................ooooooooooooooooooooooooooooooooo
Started.
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

$ $(/usr/local/bin/boot2docker shellinit)
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/robbinsd/.boot2docker/certs/boot2docker-vm/key.pem

$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
2014/10/17 14:35:22 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

Just to make sure it wasn't the same problem as #79:

$ echo $DOCKER_HOST
tcp://192.168.59.103:2376

$ echo $DOCKER_CERT_PATH
/Users/robbinsd/.boot2docker/certs/boot2docker-vm

$ echo $DOCKER_TLS_VERIFY
1

$ docker version
Client version: 1.3.0
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): c78088f
OS/Arch (client): darwin/amd64
2014/10/17 14:58:45 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

[UX] installation - new Summary screen for Docker Hub (optional) registration

Additional context: https://trello.com/c/O0hxnGCq

A new screen between "Installing" (Image A) and "Summary" (Image B) screens

Image A
image

Image B
image

iTerm support

@artiom can you please make a new PR with the changes from #61, and then add more to the iTerm detection so that we don't trigger any UI if iTerm is not installed?

Boot2Docker 1.2.0 on Mac OSX 10.9.4 generates bsdthread_register error

I have just installed Boot2Docker 1.2.0 on Mac OSX 10.9.4. When I run any boot2docker command, I get this error:

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x522c75)
/usr/src/go/src/pkg/runtime/panic.c:520 +0x69
runtime.goenvs()
/usr/src/go/src/pkg/runtime/os_darwin.c:88 +0x62
runtime.schedinit()
/usr/src/go/src/pkg/runtime/proc.c:164 +0x76
_rt0_go()
/usr/src/go/src/pkg/runtime/asm_amd64.s:91 +0x114

I also tried using Boot2Docker 1.1.2 with the same problem.

I finally installed it using Homebrew and everything is working. I can help reproduce if there is any interest into looking into this.

Thanks,
Suriyanto

0.11.1-pre1 not connecting to VM?

I have been trying to make version 0.11.1-pre1 work on OS X 10.9.3 with no luck

I download, install and run the commands here (Changing to port 4243)

boot2docker 
boot2docker start
export DOCKER_HOST=tcp://localhost:4243

The VM is created and I can ssh and execute commands there

$ docker search tutorial

NAME                                       DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
learn/tutorial                                                                             3
namin/io.livecode.ch                       interactive programming tutorials, powered...   1                    [OK]
sfilipov/rails-tutorial                                                                    0                    [OK]
zqhxuyuan/tutorial                                                                         0
florentbenoit/docker-angularjs-tutorials                                                   0                    [OK]
mzdaniel/buildbot-tutorial                                                                 0
jbarbier/tutorial1

But if I try to use it from os x I always get this:

➜  ~  docker search tutorial
2014/06/07 14:57:16 Get http://localhost:4243/v1.11/images/search?term=tutorial: EOF

Any idea why is happening?

An error of type -10827 has occurred

I am receiving this message when I try to run the OS X docker app:

An error of type -10827 has occurred (Edit or OK)

I have updated to 1.3.1 but the error remains.

Cope with unusual default shells

If you have 'fish' as the default shell, main.scpt will not run properly. The problem can be solved by executing 'bash' before the other commands in the script.

Upgrade to 1.3 fails

This seems the be very similar to the issue I had upgrading to 1.2.

After installing the 1.3 dmg and starting I get

2014/10/22 08:20:01 Error response from daemon: client and server don't have same version (client : 1.15, server: 1.14)

Not sure if "client" means the .iso. So I deleted the existing .iso and then tried to run boot2docker download and get

[2014-10-22 08:22:21] Could not get lastest release name! Cannot download boot2docker.iso.

Last time I had to search around the disk and delete all traces of boot2docker and reinstall. I guess I will try that again.

boot2docker.app does not work with all shells

I'm a fish-shell user, which boot2docker.app is not playing nicely with. It opens a new Terminal window and tries to run a bunch of POSIX syntax stuff, and Fish is purposefully not POSIX compliant. Is it possible to make sure that boot2docker.app opens Terminal.app into a bash shell? I'd submit this as a PR myself, but I see only raw files and no scripts that are actually editable.

boot2docker init fails with VBoxManage longmode

When I try to run boot2docker -v init it fails with VBoxManage: error: Unknown option: --longmode

Versions:

echo `docker --version` && echo `boot2docker version` && echo `vboxmanage -v` && echo `sw_vers -productVersion`
Docker version 1.1.0, build 79812e3
Client version: v1.1.0 Git commit: 7e20d36
4.2.16r86992
10.9.5

Unfortunately I can't run newer versions of VirtualBox because they cause my Mac to kernel panic.

Full output of boot2docker -v init

2014/10/23 14:56:16 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2014/10/23 14:56:16 Creating VM boot2docker-vm...
2014/10/23 14:56:16 executing: VBoxManage list vms
2014/10/23 14:56:16 executing: VBoxManage createvm --name boot2docker-vm --register
Virtual machine 'boot2docker-vm' is created and registered.
UUID: <...>
Settings file: '/Users/me/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox'
2014/10/23 14:56:16 executing: VBoxManage showvminfo boot2docker-vm --machinereadable
2014/10/23 14:56:16 Apply interim patch to VM boot2docker-vm (https://www.virtualbox.org/ticket/12748)
2014/10/23 14:56:16 executing: VBoxManage setextradata boot2docker-vm VBoxInternal/CPUM/EnableHVP 1
2014/10/23 14:56:16 executing: VBoxManage modifyvm boot2docker-vm --firmware bios --bioslogofadein off --bioslogofadeout off --natdnshostresolver1 on --bioslogodisplaytime 0 --biosbootmenu disabled --ostype Linux26_64 --cpus 8 --memory 2048 --vram 8 --acpi on --ioapic on --rtcuseutc on --cpuhotplug off --pae on --longmode on --synthcpu off --hpet on --hwvirtex on --triplefaultreset off --nestedpaging on --largepages on --vtxvpid on --vtxux off --accelerate3d off --uart1 0x3F8 4 --uartmode1 server /Users/me/.boot2docker/boot2docker-vm.sock --boot1 dvd
Oracle VM VirtualBox Command Line Management Interface Version 4.2.16
(C) 2005-2013 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifyvm         <uuid|name>
                            [--name <name>]
                            [--groups <group>, ...]
                            [--ostype <ostype>]
                            [--memory <memorysize in MB>]
                            [--pagefusion on|off]
                            [--vram <vramsize in MB>]
                            [--acpi on|off]
                            [--pciattach 03:04.0]
                            [--pciattach 03:04.0@02:01.0]
                            [--pcidetach 03:04.0]
                            [--ioapic on|off]
                            [--pae on|off]
                            [--hpet on|off]
                            [--hwvirtex on|off]
                            [--hwvirtexexcl on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--synthcpu on|off]
                            [--cpuidset <leaf> <eax> <ebx> <ecx> <edx>]
                            [--cpuidremove <leaf>]
                            [--cpuidremoveall]
                            [--hardwareuuid <uuid>]
                            [--cpus <number>]
                            [--cpuhotplug on|off]
                            [--plugcpu <id>]
                            [--unplugcpu <id>]
                            [--cpuexecutioncap <1-100>]
                            [--rtcuseutc on|off]
                            [--monitorcount <number>]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--chipset ich9|piix3]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime <msec>]
                            [--bioslogoimagepath <imagepath>]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biossystemtimeoffset <msec>]
                            [--biospxedebug on|off]
                            [--boot<1-4> none|floppy|dvd|disk|net>]
                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        generic]
                            [--nictype<1-N> Am79C970A|Am79C973|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1-N> on|off]
                            [--nictrace<1-N> on|off]
                            [--nictracefile<1-N> <filename>]
                            [--nicproperty<1-N> name=[value]]
                            [--nicspeed<1-N> <kbps>]
                            [--nicbootprio<1-N> <priority>]
                            [--nicpromisc<1-N> deny|allow-vms|allow-all]
                            [--nicbandwidthgroup<1-N> none|<name>]
                            [--bridgeadapter<1-N> none|<devicename>]
                            [--hostonlyadapter<1-N> none|<devicename>]
                            [--intnet<1-N> <network name>]
                            [--natnet<1-N> <network>|default]
                            [--nicgenericdrv<1-N> <driver>
                            [--natsettings<1-N> [<mtu>],[<socksnd>],
                                                [<sockrcv>],[<tcpsnd>],
                                                [<tcprcv>]]
                            [--natpf<1-N> [<rulename>],tcp|udp,[<hostip>],
                                          <hostport>,[<guestip>],<guestport>]
                            [--natpf<1-N> delete <rulename>]
                            [--nattftpprefix<1-N> <prefix>]
                            [--nattftpfile<1-N> <file>]
                            [--nattftpserver<1-N> <ip>]
                            [--natbindip<1-N> <ip>
                            [--natdnspassdomain<1-N> on|off]
                            [--natdnsproxy<1-N> on|off]
                            [--natdnshostresolver<1-N> on|off]
                            [--nataliasmode<1-N> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1-N> auto|<mac>]
                            [--mouse ps2|usb|usbtablet
                            [--keyboard ps2|usb
                            [--uart<1-N> off|<I/O base> <IRQ>]
                            [--uartmode<1-N> disconnected|
                                             server <pipe>|
                                             client <pipe>|
                                             file <file>|
                                             <devicename>]
                            [--guestmemoryballoon <balloonsize in MB>]
                            [--audio none|null|coreaudio]
                            [--audiocontroller ac97|hda|sb16]
                            [--clipboard disabled|hosttoguest|guesttohost|
                                         bidirectional]
                            [--draganddrop disabled|hosttoguest
                            [--vrde on|off]
                            [--vrdeextpack default|<name>
                            [--vrdeproperty <name=[value]>]
                            [--vrdeport <hostport>]
                            [--vrdeaddress <hostip>]
                            [--vrdeauthtype null|external|guest]
                            [--vrdeauthlibrary default|<name>
                            [--vrdemulticon on|off]
                            [--vrdereusecon on|off]
                            [--vrdevideochannel on|off]
                            [--vrdevideochannelquality <percent>]
                            [--usb on|off]
                            [--usbehci on|off]
                            [--snapshotfolder default|<path>]
                            [--teleporter on|off]
                            [--teleporterport <port>]
                            [--teleporteraddress <address|empty>
                            [--teleporterpassword <password>]
                            [--teleporterpasswordfile  <file>|stdin]
                            [--tracing-enabled on|off]
                            [--tracing-config <config-string>]
                            [--tracing-allow-vm-access on|off]
                            [--usbwebcam on|off]
                            [--usbcardreader on|off]
                            [--autostart-enabled on|off]
                            [--autostart-delay <seconds>]

VBoxManage: error: Unknown option: --longmode
2014/10/23 14:56:16 Failed to modify VM "boot2docker-vm": exit status 1

boot2docker up really slow

In the Video that shows the Mac OSX installation boot2docker up just taks a few seconds, for me it takes quite a long time and is slower than booting an Ubuntu VM:
screen shot 2014-09-20 at 23 31 57

I tried installing it via homebrew as well as via this installer and both seem to have equal times. Any reasons why this could be so slow?

I'm getting timeouts.

I get these all (most) of the time but the first run.

Script timeout

I guess this can be improved but not sure what's going on.

Is there a Applescript debug option?

Why the installer needs admin privileges

What does the installer do in addition to what is available in home brew that it needs admin privileges?
Is it possible to make the installer work without admin? or make it an option?

Cannot connect to the Docker daemon.

Something seems wrong while going with the default flow:

~
⧑ bash
bash-3.2$ unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH
bash-3.2$ mkdir -p ~/.boot2docker
bash-3.2$ if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi
bash-3.2$ /usr/local/bin/boot2docker init 
2014/07/10 13:04:11 Virtual machine boot2docker-vm already exists
bash-3.2$ /usr/local/bin/boot2docker up && export DOCKER_HOST=tcp://$(/usr/local/bin/boot2docker ip 2>/dev/null):2375
2014/07/10 13:04:11 Waiting for VM to be started...

2014/07/10 13:04:12 Started.
2014/07/10 13:04:12 To connect the Docker client to the Docker daemon, please set:
2014/07/10 13:04:12     export DOCKER_HOST=tcp://192.168.59.103:2375
bash-3.2$ docker version
Client version: 1.1.1
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): bd609d2
2014/07/10 13:04:12 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
bash-3.2$ docker version
Client version: 1.1.1
Client API version: 1.13
Go version (client): go1.2.1
Git commit (client): bd609d2
2014/07/10 13:05:08 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

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.