Docker #1:Windows 7にDockerToolboxをインストール

Dockerって何?
ということで、Docker(DockerToolbox)を試してみる

記事一覧


環境

OS : Windows7
このマシンにはVirtualBoxが既に入っている。

手順

https://docs.docker.com/toolbox/toolbox_install_windows/
[Get Docker Toolbox for Windows]

ダウンロードした DockerToolbox.exe を実行
すべて既定値のままとした

ショートカット "Docker Quickstart Terminal" というのが出来たので実行してみた。

しばらくすると以下画面となった。
                        ##         .
                  ## ## ##        ==
              ## ## ## ## ##    ===
          /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
          \______ o           __/
            \    \         __/
              \____\_______/

docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com


Start interactive shell

xxx@xxx MINGW64 /c/Program Files/Docker Toolbox
$
  
以下コマンドを実行し「hello-world」コンテナを起動してみる。
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/


xxx@xxx MINGW64 /c/Program Files/Docker Toolbox
$


Docker

0 件のコメント:

その他の記事