Docker for Windowsã試ãã¦ã¿ã
Dockerãã¨æ¯æ°ãããã£ã¦ã¿ã
3ææ«ã«ãã¥ã¼ã¹ã§ç¥ã£ã¦ç»é²ãã¦ããDocker Private Betaããã£ããå¿ãã¦ããããã©ãGWä¸ã«ã¡ã¼ã«ãæ¥ã¦ããã
ä½ãéãã®
以ä¸ãå ¬å¼ããæç²
Docker for Mac and Docker for Windows are faster, more reliable alternatives to Docker Toolbox for running Docker on these platforms. Here are some highlights of the new products.
- Faster and more reliable - No more VirtualBox! On Mac, the Docker Engine runs in an xhyve Virtual Machine (VM) on top of an Alpine Linux distribution. The VM is managed by the native Docker application. On Windows, the Docker Engine is running in a Hyper-V VM. You do not need Docker Machine (docker-machine) to run Docker for Mac and Docker for Windows.
https://beta.docker.com/docs/features-overview/
VirtualBox使ããªãã¦ãããªã£ããï¼
ã¨ããã®ãã¦ãª
ã¤ã³ã¹ãã¼ã«
ã¨ãããã¨ã§ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã
ãªãã2016/5/10æç¹ã¯BETAçãªã®ã§ç»é²å¾ã«ã¡ã¼ã«ã§éããã¦ãããã¼ã¯ã³ããªãã¨ä½¿ãã¾ããã
ä¸è¨ã§ãã¦ã³ãã¼ãããã¤ã³ã¹ãã¼ã©ãå®è¡ãã¦æ®éã«ã¤ã³ã¹ãã¼ã«ã
ãããªã«ããããã¢ã¤ã³ã³ãã§ãã¾ãã
èµ·åããã¨ããHyper-Vãå¿ è¦ã ããæå¹ã«ããããï¼ãã¨èãã¦ããã®ã§ãInstall & Restartãã§æå¹åãã¦åèµ·åã
ä»åº¦ã¯ã¡ã¼ã«ã®ãã¼ã¯ã³ãå ¥åãã¦ãSubmitã
èµ·åãã¾ããã
ã¿ã¹ã¯ãã¼ã®éç¥ã¨ãªã¢ã«Dockerç¾ï¼ä»®åï¼ãã
Dockerç¾ãå³ã¯ãªãã¯ã§ã¡ãã¥ã¼ãã§ãã
試ãã¦ã¿ã
ã¤ã³ã¹ãã¼ã«ããã®ã§ä½ããã¦ã¿ãããªããä»åã¯Gitã®bashã§è©¦ãã
OS | Windows10 10.0.10586 |
bash | Git version 2.8.0 |
CLIã試ããDocker for Windowsã«ã¯docker-composeã¨docker-machineãå«ã¾ãã¦ããã
- docker
$ docker version Client: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 5604cbe Built: Wed Apr 27 00:34:20 2016 OS/Arch: windows/amd64 Server: Version: 1.11.1 API version: 1.23 Go version: go1.5.4 Git commit: 8b63c77 Built: Fri Apr 29 14:13:26 2016 OS/Arch: linux/amd64
go-lang製ã
- docker-compose
$ docker-compose version docker-compose version 1.7.0, build 0d7bf73 docker-py version: 1.8.0 CPython version: 2.7.11 OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015
python製ã
- docker-machine
$ docker-machine version docker-machine.exe version 0.7.0, build a650a40
Windowsãã¤ãã£ããªã®ããªï¼
ãã¥ã¼ããªã¢ã«ã«ãããã£ã¦ä½ããã¦ã¿ãã
$ docker run ubuntu /bin/echo 'Hello world' Unable to find image 'ubuntu:latest' locally latest: Pulling from library/ubuntu 6d28225f8d96: Pull complete ================================================>] 48.35 MB/48.35 MBB 166102ec41af: Pull complete ================================================>] 755 B/755 BB d09bfba2bd6a: Pull complete ================================================>] 519 B/519 BB c80dad39a6c0: Pull complete ================================================>] 677 B/677 BB a3ed95caeb02: Pull complete ================================================>] 32 B/32 BB Digest: sha256:5718d664299eb1db14d87db7bfa6945b28879a67b74f36da3e34f5914866b71c Status: Downloaded newer image for ubuntu:latest C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Container command 'C:/MyApp/Git/usr/bin/echo' not found or does not exist..
çªç¶ã®ã¨ã©ã¼ï¼
å®ã¯ããã¯Git bashã®ããã"/bin/echo"ãèªåã®ã³ãã³ãã¨åéããã¦ããã ããadbã®æã«ããã£ããã¤ã
ã¨ãããã¨ã§ãã¹ã©ãã·ã¥ã§å§ã¾ããã¹æååã®å é ã«ã¹ã©ãã·ã¥ãã¤ããã¨åé¿ã§ããã
$ docker run ubuntu //bin/echo 'Hello world' Hello world
ããã¼ã¯ã¼ã«ã
$ docker run -t -i ubuntu //bin/bash root@001eda79ed21:/# pwd / root@001eda79ed21:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var root@001eda79ed21:/# uname -a Linux 001eda79ed21 4.4.6-moby #1 SMP Fri Apr 29 14:12:19 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux root@001eda79ed21:/#
ã³ã³ããä¸ã§bashèµ·å
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 001eda79ed21 ubuntu "//bin/bash" 39 seconds ago Up 36 seconds compassionate_bell
bashèµ·åä¸ã®ã³ã³ãã確èª
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest c5f1cf30c96b 5 days ago 120.8 MB
ã¤ã¡ã¼ã¸ãæ®éã«è¦ãã¦ãã
ã¨ããããç°¡åã«è§¦ã£ãã ãã§ããããã©ããLinuxä¸ã«ã¤ã³ã¹ãã¼ã«ããã®ã¨å¤ãããªããããªã¥ã¼ã ã®ãã¦ã³ãã¨ããã¼ã転éã¨ãã¯BETAçãªã®ã§è²ã ã¨ããããã ããã©ããã¨ããããã¯æ®éã«ä½¿ãã¦ç¶ããæåãã¾ããã
- ä½è : WINGSããã¸ã§ã¯ãé¿ä½å¿ä¿
- åºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾
- çºå£²æ¥: 2015/11/19
- ã¡ãã£ã¢: Kindleç
- ãã®ååãå«ãããã° (1件) ãè¦ã
Docker å®è·µã¬ã¤ã (impress top gear)
- ä½è : å¤è³æ¿ç´
- åºç社/ã¡ã¼ã«ã¼: ã¤ã³ãã¬ã¹
- çºå£²æ¥: 2015/12/17
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- ãã®ååãå«ãããã° (2件) ãè¦ã