Created
February 15, 2014 17:00
-
-
Save fivemini/9021978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github $ brew tap homebrew/binary | |
Cloning into '/usr/local/Library/Taps/homebrew-binary'... | |
remote: Reusing existing pack: 110, done. | |
remote: Total 110 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (110/110), 16.96 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (51/51), done. | |
Tapped 10 formula | |
github $ | |
github $ | |
github $ brew install docker | |
Warning: It appears you have MacPorts or Fink installed. | |
Software installed with other package managers causes known problems for | |
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/docker-0.8.0.mavericks.bottle.2.tar.gz | |
######################################################################## 100.0% | |
==> Pouring docker-0.8.0.mavericks.bottle.2.tar.gz | |
==> 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.8.0: 9 files, 12M | |
github $ | |
github $ which docker | |
/usr/local/bin/docker | |
github $ ll /usr/local/bin/docker | |
lrwxr-xr-x 1 admin 33 2 15 21:18 /usr/local/bin/docker -> ../Cellar/docker/0.8.0/bin/docker | |
github $ | |
github $ | |
github $ cd ~/docker/ | |
docker $ | |
docker $ brew install boot2docker | |
Warning: It appears you have MacPorts or Fink installed. | |
Software installed with other package managers causes known problems for | |
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. | |
==> Downloading https://github.com/steeve/boot2docker/archive/v0.5.4.tar.gz | |
######################################################################## 100.0% | |
🍺 /usr/local/Cellar/boot2docker/0.5.4: 4 files, 32K, built in 9 seconds | |
docker $ | |
docker $ ll /usr/local/bin/boot2docker | |
lrwxr-xr-x 1 admin 43 2 15 21:26 /usr/local/bin/boot2docker -> ../Cellar/boot2docker/0.5.4/bin/boot2docker | |
docker $ | |
docker $ boot2docker status | |
[2014-02-15 21:28:24] boot2docker-vm does not exist. | |
docker $ | |
docker $ | |
docker $ boot2docker init | |
[2014-02-15 21:29:59] Creating VM boot2docker-vm | |
Virtual machine 'boot2docker-vm' is created and registered. | |
UUID: 83b2cd8b-baa1-4447-ad8f-286cbc43cd87 | |
Settings file: '/Users/fivemini/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vbox' | |
[2014-02-15 21:29:59] Setting VM settings | |
[2014-02-15 21:29:59] Setting VM networking | |
[2014-02-15 21:29:59] boot2docker.iso not found. | |
[2014-02-15 21:30:03] Latest version is v0.5.4, downloading... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 348 100 348 0 0 216 0 0:00:01 0:00:01 --:--:-- 225 | |
100 27.0M 100 27.0M 0 0 445k 0 0:01:02 0:01:02 --:--:-- 628k | |
[2014-02-15 21:31:06] Done | |
[2014-02-15 21:31:06] Setting VM disks | |
[2014-02-15 21:31:06] Creating 40000 Meg hard drive... | |
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | |
Disk image created. UUID: ca143eae-b509-4725-8f3f-db35c0c65b25 | |
Converting from raw image file="format-flag.txt" to file="format-flag.vmdk"... | |
Creating dynamic image with size 5242880 bytes (5MB)... | |
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | |
Clone hard disk created in format 'VMDK'. UUID: ca143eae-b509-4725-8f3f-db35c0c65b25 | |
[2014-02-15 21:31:07] Done. | |
[2014-02-15 21:31:07] You can now type boot2docker up and wait for the VM to start. | |
docker $ | |
docker $ | |
docker $ boot2docker status | |
[2014-02-15 21:35:07] boot2docker-vm is stopped. | |
docker $ | |
docker $ | |
docker $ boot2docker up | |
[2014-02-15 21:38:51] Starting boot2docker-vm... | |
[2014-02-15 21:39:25] Started. | |
docker $ | |
docker $ boot2docker status | |
[2014-02-15 21:39:51] boot2docker-vm is running. | |
docker $ | |
docker $ | |
docker $ boot2docker ssh | |
Warning: Permanently added '[localhost]:2022' (RSA) to the list of known hosts. | |
docker@localhost's password: tcuser | |
## . | |
## ## ## == | |
## ## ## ## === | |
/""""""""""""""""\___/ === | |
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ | |
\______ o __/ | |
\ \ __/ | |
\____\______/ | |
_ _ ____ _ _ | |
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __ | |
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__| | |
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ | | |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_| | |
boot2docker: 0.5.4 | |
docker@boot2docker:~$ | |
docker@boot2docker:~$ Connection to localhost closed. | |
docker $ | |
docker $ docker info | |
2014/02/15 21:55:15 dial unix /var/run/docker.sock: no such file or directory | |
docker $ | |
docker $ export DOCKER_HOST=localhost | |
docker $ | |
docker $ docker info | |
Containers: 0 | |
Images: 0 | |
Driver: aufs | |
Root Dir: /mnt/sda1/var/lib/docker/aufs | |
Dirs: 0 | |
Debug mode (server): true | |
Debug mode (client): false | |
Fds: 10 | |
Goroutines: 12 | |
Execution Driver: lxc-0.8.0 | |
EventsListeners: 0 | |
Kernel Version: 3.12.1-tinycore64 | |
Init Path: /usr/local/bin/docker | |
docker $ | |
docker $ | |
docker $ docker version | |
Client version: 0.8.0 | |
Go version (client): go1.2 | |
Git commit (client): cc3a8c8d8ec57e15b7b7316797132d770408ab1a | |
Server version: 0.8.0 | |
Git commit (server): cc3a8c8 | |
Go version (server): go1.2 | |
Last stable version: 0.8.0 | |
docker $ | |
docker $ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
docker $ | |
docker $ | |
docker $ docker pull ubuntu | |
Pulling repository ubuntu | |
9cd978db300e: Download complete | |
eb601b8965b8: Download complete | |
5ac751e8d623: Download complete | |
9cc9ea5ea540: Download complete | |
9f676bd305a4: Download complete | |
511136ea3c5a: Download complete | |
6170bb7b0ad1: Download complete | |
321f7f4200f4: Download complete | |
f323cf34fd77: Download complete | |
7a4f87241845: Download complete | |
1c7f181e78b9: Download complete | |
docker $ | |
docker $ | |
docker $ docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
ubuntu 13.10 9f676bd305a4 11 days ago 178 MB | |
ubuntu saucy 9f676bd305a4 11 days ago 178 MB | |
ubuntu raring eb601b8965b8 11 days ago 166.5 MB | |
ubuntu 13.04 eb601b8965b8 11 days ago 166.5 MB | |
ubuntu 12.10 5ac751e8d623 11 days ago 161 MB | |
ubuntu quantal 5ac751e8d623 11 days ago 161 MB | |
ubuntu 10.04 9cc9ea5ea540 11 days ago 180.8 MB | |
ubuntu lucid 9cc9ea5ea540 11 days ago 180.8 MB | |
ubuntu 12.04 9cd978db300e 11 days ago 204.4 MB | |
ubuntu latest 9cd978db300e 11 days ago 204.4 MB | |
ubuntu precise 9cd978db300e 11 days ago 204.4 MB | |
docker $ | |
docker $ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
docker $ | |
docker $ | |
docker $ docker run ubuntu /bin/echo hello world | |
hello world | |
docker $ | |
docker $ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
docker $ | |
docker $ docker run -i -t ubuntu /bin/bash | |
root@2785a5aa93be:/# | |
root@2785a5aa93be:/# exit | |
docker $ | |
docker $ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
docker $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment