Docker for macãåºã¦ããããã°ãã使ã£ã¦ããããã©ã ã©ããã¦ããã£ã¹ã¯ã®å°ãæ¹ãã¤ããã¦ãDocker for macãåæ¥ã
ç¾å¨ã®ãã¼ã«ã«ã®Dockerã®ç°å¢ã¯ Parallels + CoreOS Stable channel + Docker client ã¨ããæ§æã«ã ã¨ãããæ»ã£ãã
paralllels + CoreOSã®ã¨ããã¯ä¸æ¦ç½®ãã¦ãã㦠Macã«Docker clientã ããã¹ãã¼ãã«å ¥ããæ¹æ³ã¯ãªããã¨æ¨¡ç´¢ããã¨ãã toolboxã®ã½ã¼ã¹ã«ããDockerfile.osxã«ãã³ããã
36 RUN curl -fsSL -o dockerbins.tgz "https://get.docker.com/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz" && \ 37 tar xvf dockerbins.tgz docker/docker --strip-components 1 && \ 38 rm dockerbins.tgz 39 40 RUN chmod +x /docker
https://get.docker.com/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz
ãã®URLããããã°ãåãããåããªãã£ããããDocker toolboxã®ã¤ã³ã¹ãã¼ã©ã¼ã«ãããããããã¨ããªãã Docker clientã ããMacã«ã¹ãã¼ãã«å ¥ããããã
$ DOCKER_VERSION=1.11.2 $ wget https://get.docker.com/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz $ tar zxf docker-${DOCKER_VERSION}.tgz $ mv docker/docker /usr/local/bin/docker-${DOCKER_VERSION} $ pushd /usr/local/bin/ $ chmod +x docker-${DOCKER_VERSION} $ ln -s docker-${DOCKER_VERSION} docker
ããã§clientã ããå ¥ããäºãã§ããã ãã¨ã¯ç°å¢å¤æ°ã®DOCKER_HOSTã«tcp://${COREOS_HOST}:2375 ã¨ãå ¥ãã¦ããã°OK