Skip to content

Instantly share code, notes, and snippets.

@tknzk
Created April 17, 2014 02:26
Show Gist options
  • Save tknzk/10948800 to your computer and use it in GitHub Desktop.
Save tknzk/10948800 to your computer and use it in GitHub Desktop.
-> % brew install boot2docker
==> Installing boot2docker dependency: docker
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/docker-0.9.1.mavericks.bottle.tar.gz
curl: (18) transfer closed with 2918995 bytes remaining to read
Error: Failed to download resource "docker"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/docker-0.9.1.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Cloning https://github.com/dotcloud/docker.git
Cloning into '/Library/Caches/Homebrew/docker--git'...
remote: Counting objects: 924, done.
remote: Compressing objects: 100% (832/832), done.
remote: Total 924 (delta 43), reused 586 (delta 28)
Receiving objects: 100% (924/924), 2.71 MiB | 864.00 KiB/s, done.
Resolving deltas: 100% (43/43), done.
Checking connectivity... done.
Note: checking out '867b2a90c228f62cdcd44907ceef279a2d8f1ac5'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
==> Checking out tag v0.9.1
==> hack/make.sh dynbinary
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/docker/0.9.1: 9 files, 12M, built in 15 seconds
==> Installing boot2docker
==> Downloading https://github.com/boot2docker/boot2docker/archive/v0.7.1.tar.gz
######################################################################## 100.0%
🍺 /usr/local/Cellar/boot2docker/0.7.1: 4 files, 32K, built in 3 seconds
@tknzk
Copy link
Author

tknzk commented Apr 17, 2014

-> % boot2docker init
[2014-04-17 11:28:14] Creating VM boot2docker-vm
Virtual machine 'boot2docker-vm' is created and registered.
UUID: b561a9bc-5438-4af5-9420-fa3d6f24f0fe
Settings file: '/Users/tknzk/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox'
[2014-04-17 11:28:14] Apply interim patch to VM boot2docker-vm (https://www.virtualbox.org/ticket/12748)
[2014-04-17 11:28:14] Setting VM settings
[2014-04-17 11:28:14] Setting VM networking
[2014-04-17 11:28:14] boot2docker.iso not found.
[2014-04-17 11:28:16] Latest version is v0.8.0, downloading...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 344 100 344 0 0 346 0 --:--:-- --:--:-- --:--:-- 346
100 24.0M 100 24.0M 0 0 2963k 0 0:00:08 0:00:08 --:--:-- 4482k
[2014-04-17 11:28:24] Done
[2014-04-17 11:28:24] Setting VM disks
[2014-04-17 11:28:24] Creating 40000 Meg hard drive...
Converting from raw image file="stdin" to file="/Users/tknzk/.boot2docker/boot2docker-vm.vmdk"...
Creating dynamic image with size 41943040000 bytes (40000MB)...
[2014-04-17 11:28:24] Done.
[2014-04-17 11:28:24] You can now type boot2docker up and wait for the VM to start.
tknzk@tknzks-mba [11:28:24] [~/docker]
-> % boot2docker up
[2014-04-17 11:28:30] Starting boot2docker-vm...
[2014-04-17 11:28:50] Started.

To connect the docker client to the Docker daemon, please set:
export DOCKER_HOST=tcp://localhost:4243

tknzk@tknzks-mba [11:28:50] [/docker]
-> % boot2docker ssh
docker@localhost's password:
docker@localhost's password:
docker@localhost's password:
tknzk@tknzks-mba [11:29:39] [
/docker]
-> % boot2docker ssh
docker@localhost's password:
docker@localhost's password:
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
____
o */
\ \ /
*
_____/


| |__ ___ ___ | ||__ \ | | ___ ___| | ___ _ __
| '_ \ / _ \ / _ | | __) / _` |/ _ \ / __| |/ / _ \ '|
| |) | () | () | | / / (| | () | (| < / |
|_.
/ / _/ __|,|/ _||_|_|
boot2docker: 0.8.0
docker@boot2docker:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment