WindowsでLinuxコンテナを動かす。
Docker for Windowsを以下DLしてWindows10Proにインストール
PS C:\WINDOWS\system32> docker version Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:40:59 2017 OS/Arch: windows/amd64 Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 3a232c8 Built: Tue Feb 28 07:52:04 2017 OS/Arch: linux/amd64 ←ここでコンテナがLinuxが動作することがわかる Experimental: true
PS C:\WINDOWS\system32> docker pull bash Using default tag: latest latest: Pulling from library/bash 627beaf3eaaf: Pull complete 7e2889a553e0: Pull complete 4f9a0f3eaf09: Pull complete Digest: sha256:96c319a25fe24ebd52b9c1168ad473d604b733be6c88013ccce9e4fbc48fa68f Status: Downloaded newer image for bash:latest
PS C:\WINDOWS\system32> docker run -it bash bash-4.4# ls bin dev etc home lib media mnt proc root run sbin srv sys tmp usr var