docker mac

Pocket

memo


astel-no-MacBook-Pro% brew upgrade
astel-no-MacBook-Pro% brew update

astel-no-MacBook-Pro% brew install docker
==> Downloading https://homebrew.bintray.com/bottles/docker-1.10.3.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring docker-1.10.3.el_capitan.bottle.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/1.10.3: 10 files, 11.2M


astel-no-MacBook-Pro% brew install boot2docker  
==> Downloading https://homebrew.bintray.com/bottles/boot2docker-1.8.0_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring boot2docker-1.8.0_1.el_capitan.bottle.tar.gz
==> Caveats
Rebuild the VM after an upgrade with:
  boot2docker destroy && boot2docker upgrade

To have launchd start boot2docker at login:
  ln -sfv /usr/local/opt/boot2docker/*.plist ~/Library/LaunchAgents
Then to load boot2docker now:
  launchctl load ~/Library/LaunchAgents/homebrew.mxcl.boot2docker.plist
==> Summary
?  /usr/local/Cellar/boot2docker/1.8.0_1: 3 files, 8M



astel-no-MacBook-Pro% docker -v            
Docker version 1.10.3, build 20f81dd
astel-no-MacBook-Pro% boot2docker -v
Boot2Docker-cli version: v1.8.0
Git commit: 9a26066
Usage: boot2docker [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|shellinit|delete|download|upgrade|version} [<args>]


astel-no-MacBook-Pro% boot2docker init

  WARNING: The 'boot2docker' command line interface (not to be confused with
  'boot2docker' the operating system) is officially deprecated.

  Please switch to Docker Machine (https://docs.docker.com/machine/) ASAP.

  Docker Toolbox (https://docker.com/toolbox) is the recommended install method.

Latest release for github.com/boot2docker/boot2docker is v1.10.3
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.10.3/boot2docker.iso
	to /Users/astel/.boot2docker/boot2docker.iso
Generating public/private rsa key pair.
Your identification has been saved in /Users/astel/.ssh/id_boot2docker.
Your public key has been saved in /Users/astel/.ssh/id_boot2docker.pub.
The key fingerprint is:
SHA256:xxzm+ifDh/32nncscnaBZIin9KP3vnxOP4yKkIPq5As astel@astel-no-MacBook-Pro.local
The key's randomart image is:
+---[RSA 2048]----+
|                 |
|                 |
|          + .    |
|         B + o   |
|        S O o .  |
|      . .+ o . . |
| E . . +...o. oo.|
|  + .   oo*.*.*+B|
|  .=.    .o*+@=BB|
+----[SHA256]-----+
Initialization of virtual machine "boot2docker-vm" complete.
Use `boot2docker up` to start it.
astel-no-MacBook-Pro% boot2docker ip  
error in run: VM "boot2docker-vm" is not running. (Did you run `boot2docker up`?)
astel-no-MacBook-Pro% git status     
On branch test-with-docker
Your branch is up-to-date with 'origin/test-with-docker'.
nothing to commit, working directory clean
astel-no-MacBook-Pro% boot2docker up

  WARNING: The 'boot2docker' command line interface (not to be confused with
  'boot2docker' the operating system) is officially deprecated.

  Please switch to Docker Machine (https://docs.docker.com/machine/) ASAP.

  Docker Toolbox (https://docker.com/toolbox) is the recommended install method.

Waiting for VM and Docker daemon to start...
.........................ooooooooooooo
Started.
Writing /Users/astel/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/astel/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/astel/.boot2docker/certs/boot2docker-vm/key.pem

To connect the Docker client to the Docker daemon, please set:
    export DOCKER_HOST=tcp://192.168.59.103:2376
    export DOCKER_CERT_PATH=/Users/astel/.boot2docker/certs/boot2docker-vm
    export DOCKER_TLS_VERIFY=1

Or run: `eval "$(boot2docker shellinit)"`

astel-no-MacBook-Pro% 
astel-no-MacBook-Pro% export DOCKER_HOST=tcp://192.168.59.103:2376
astel-no-MacBook-Pro% export DOCKER_CERT_PATH=/Users/astel/.boot2docker/certs/boot2docker-vm
astel-no-MacBook-Pro% export DOCKER_TLS_VERIFY=1


astel-no-MacBook-Pro% 
astel-no-MacBook-Pro% 
astel-no-MacBook-Pro% boot2docker ssh
                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 1.10.3, build master : 625117e - Thu Mar 10 22:09:02 UTC 2016
Docker version 1.10.3, build 20f81dd
docker@boot2docker:~$ 
docker@boot2docker:~$ exit

コメントを残す

メールアドレスが公開されることはありません。