ç®æ¬¡ ãªãDockerfileã使ãã®ãï¼ ADDã¨Dockerfileã«ããã¦ã®ã³ã³ããã¹ããç解ãã CMDã§ã³ã³ããããã¤ããªã®ããã«æ±ã CMDã¨ENTRYPOINTã®éã exec format error ãã«ãæã®ãã£ãã·ã¥ã«ã¤ãã¦: ãã£ãã·ã¥ãæå¹ãªã¨ãã¨ç¡å¹ãªã¨ã ããä¸è¡ã§ãã£ãã·ã¥ã使ãããªãã£ãããã以éã®ãã¹ã¦ã®è¡ã§ãã£ãã·ã¥ã¯ä½¿ãããªã ä½ãããªãã³ãã³ãã追å ãã¦ããã£ãã·ã¥ã¯ç¡å¹ã«ãªã ã³ãã³ãã¨å¼æ°ã®éã«æå³ã®ãªãã¹ãã¼ã¹ã®å ¥ãã¦ããã£ãã·ã¥ã¯ç¡å¹ã¨ãªã Dockerfileã®è¡ã«æå³ã®ãªãã¹ãã¼ã¹ãå ¥ãã¦ããã£ãã·ã¥ã¯æå¹ åªçã§ã¯ãªãå½ä»¤ã§ããã£ãã·ã¥ã¯å¹ãã¦ãã¾ã ADD以éã«ããå½ä»¤ã¯ãã£ãã·ã¥ãããªã (ãã ãã0.7.3以åã®ãã¼ã¸ã§ã³ã使ã£ã¦ããå ´åã®ã¿) ã³ã³ãããããã¯ã°ã©ã¦ã³ãã§åãããã㯠ãªãDockerfileã使ãã®ãï¼ Do
ãdocker run/stop/start/rm/commitãã®åã³ãã³ãã®å½¹å²ãæ´çãã¦ããã¾ããå ¨ä½åã¯ãããªæãã åæç°å¢ã¯ãã¡ãã§ãã # cat /etc/redhat-release Fedora release 20 (Heisenbug) # uname -a Linux fedora20 3.14.6-200.fc20.x86_64 #1 SMP Sun Jun 8 01:21:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux # rpm -q docker-io docker-io-1.0.0-1.fc20.x86_64ã¾ãããdocker runãã§æ°ããªã³ã³ãããèµ·åãã¾ããã--nameããªãã·ã§ã³ã§ååãweb01ããä»ãã¦ããã¾ãããdocker psãã¯èµ·åä¸ã®ã³ã³ããã表示ãã¾ãã # docker run -it
Ubuntuã§ã¤ã³ã¹ãã¼ã«ããdockerã¯ããã©ã«ãã§ã¯ /var/lib/dockeré ä¸ã«ã¤ã¡ã¼ã¸ãæ ¼ç´ãã¾ãã ã¨ã¯è¨ãã§ã/var/lib/dockerãå«ãã ããªã¥ã¼ã ã®ãµã¤ãºããããªã«å¤§ãããªãã! ãªãã¦ãã¨ããã¨æãã¾ãã ãã®å¤æ´æ¹æ³ã(ã¨ããã£ãé¨å) (失æä¾) /etc/defaults/dockerãå¤æ´ dockerã®åãå ã®å¤æ´ dockerã®å種ãã¡ã¤ã«ã®æ ¼ç´å ãå¤æ´ããã«ã¯ã /etc/defaults/dockerãç·¨éãããããã DOCKER_OPTSãå¤æ´ããã°ããã
第17å Dockerã§æ¤ç©ãè²ã¤æ§åãèªåé²ç»ãã¦ã¿ããââãã®1ï¼å¤è³æ¿ç´ã®ãæ»ãã®ITã®ããã®Docker塾ãï¼2/2 ãã¼ã¸ï¼ ããããDockerã³ã³ããã§USBæ¥ç¶ã®æ©å¨ã¯ä½¿ããã®ãï¼ ã³ã³ãã¥ã¼ã¿ã使ã£ã¦åç»ãæ®å½±ããã«ã¯ãWebã«ã¡ã©ã使ç¨ãã¾ããä»åã¯ããã¼ã¿ä¿ç®¡ç¨ã®HPE ProLiantãµã¼ãã«Webã«ã¡ã©ãUSBæ¥ç¶ãã¾ãããµã¼ãã§ã¯é²ç»ã¢ããªãå®è¡ãã¾ããä¸è¬çã«ã¯ãåç»ãä¿åãããã·ã³ä¸ã§é²ç»ã¢ããªãç´æ¥ç¨¼åããã¾ãããä»åã¯Dockerã³ã³ããã§é²ç»ã¢ããªã稼åãããå¿ è¦ãããã¾ãã ããã§ããµã¨çåã沸ãã¾ãããDockerã³ã³ããã§ãã¹ãOSã«USBæ¥ç¶ãããWebã«ã¡ã©ã使ããã¨ãã§ããã®ãï¼ãã¨ãããã¨ã§ããå®ã¯ãDockerç°å¢ã«ããã¦USBæ¥ç¶ã®æ©å¨ãå©ç¨ããã«ã¯ãDockerã³ã³ããã稼åãã¦ãããã¹ãOSãèªèãã¦ããç©ççãªå¨è¾ºæ©å¨ã«é¢ããã
DockerCon 2014 ã«è¡ã£ã¦ããã ãã®ä¼æä¸ã«ã¯å社ããããã¤ãã®è£½åãç´¹ä»/çºè¡¨ããããããã¦ãããã«ãã£ã¦ã¯ã©ã¦ãã¨ããæè¡ã¯æ¬¡ã®ã¹ãã¼ã¸ã«ç§»è¡ããã¨è¨ã£ã¦ãéè¨ã§ã¯ãªãã ããã ããèªç±ã«ã¦ã¼ã¶ã¼ãã¯ã©ã¦ããã³ãã¼ãé¸ã¹ãæ代ã¸ãã©ããã£ã¦ã¯ã©ã¦ãã«ãã¾ããããã¤ãããã§ã¯ãªããã¢ããªã±ã¼ã·ã§ã³ãã®ãã®ã«æ³¨åã§ããæ代ã¸ã Dockerã¨ã¯ Docker ã¨ã¯ããããã³ã³ããæè¡ã®1ã¤ã§ãLinuxãã¹ãç°å¢ã®ä¸ã«éé¢ãããå¥ã®Linuxç°å¢ãä½ã£ã¦ãããæè¡ã ã 軽éä»®æ³ãã·ã³ã¨å¼ã°ããããããã Solaris Container ã¨ãä¼¼ã¦ããã æ°ãããªãDocker 1ã¤è¿°ã¹ã¦ããã¨Dockerã¯æè¡çã«ã¯æ°ãããªããDockerã®ä¾¡å¤ã¯æè¡ä»¥å¤ã«ãã(ã¨Dockerã®CEOãDockerConã§è¨ã£ã¦ã)ã æè¡çã«ã¯Solarisã«ã¯Solaris 10ã®é ã
MacOSã¨Windowsã®ãã¤ãã£ãä»®æ³åãç¨ããDockerç´æ£ãã¼ã«ãDocker for Mac/Windowsãç»å ´ãVirtualBoxã¯ä¸è¦ã« ããã¾ã§WindowsãMacOSã®ä¸ã§Dockerã試ãã«ã¯ãããããã®OSä¸ã§Linuxãåããããã«ä»®æ³ãã·ã³ã®VirtualBoxãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ããããããOSä¸ã§ä»®æ³ãã·ã³ãåããå¦çã¯ãéãä¸å®å®ã«ãªããã¡ã§ããã Docker社ã¯ãã®æ¹æ³ã«ä»£ããæ°ãããã¼ã«ãDocker for Mac and Windowsãã®ãã¼ã¿çãçºè¡¨ãã¾ããã Docker for Mac and Windowsã¯ãããããã®OSã®ãã¤ãã£ãã¢ããªã±ã¼ã·ã§ã³ã®å½¢å¼ã§æä¾ãããVirtualBoxã®ä»£ããã«ããããã®OSã«çµã¿è¾¼ã¾ãã¦ããä»®æ³åæ©è½ãWindowsã§ã¯Hyper-VãMacOSã§ã¯xhyveãç¨ãããã¨ã§ãããé«
ä»ããã§ãéã«åãDockerã®åºç¤ãã³ã³ããã¨ã¯ä½ããDockerfileã¨ã¯ä½ããDocker Meetup Tokyo #2 ã³ã³ããåä»®æ³åã®æè¡ã¨ãã¦æ³¨ç®ããã¦ããDockerã®åå¼·ä¼ãDocker Meetup Tokyo #2ãã4æ11æ¥ã«ã°ã¼ã°ã«æ±äº¬ãªãã£ã¹ã§éå¬ããã¾ããã ãã®åå¼·ä¼ã«ã¯å®å¡100åã®ã¨ããã¸400åãè¶ ããç³ãè¾¼ã¿ããããåå ã§ããªãã£ãæ¹ãå¤ãã£ãã¨æãã¾ããæ¬è¨äºã§ã¯ãæåã®ã»ãã·ã§ã³ã¨ãã¦è¡ããã森åä¹æ°ã«ãããä»ããã§ãéã«åãDockeråºç¤+Docker 0.9æ¦è¦ãããã¤ã¸ã§ã¹ãã§ç´¹ä»ãã¾ãããã åèè¨äº 2013å¹´ã®Dockerç»å ´ããç¾å¨ï¼2018å¹´ï¼ã¾ã§ãæ¯ãè¿ãããã®æ¬¡ã®æ®µéãå±æããè¨äºããåç §ãã ããã Dockerã³ã³ããæ代ã®ç¬¬ä¸ç« ã®çµãããããã¦ç¬¬äºç« ã®å±æãªã© ä»ããã§ãéã«åãDockeråºç¤ æ ªå¼ä¼ç¤¾ãããã²ã¼
çè 注 UPDATE3 Dec 2019 æªã ã¹ããã¯ã伸ã³ã¦ãã¾ããããã®è¨äºã¯ãã¾ãã«ãå¤ãã§ãããããããã®è¨äºãåèã«ããã®ã¯ã¤ããã¨æãã¾ãã UPDATE2 Nov 2016 ããããã®åé¿ãããã¨ããããã¾ããäºæ³ä»¥ä¸ã«ããããããã¹ããã¯ãã伸ã³ç¶ãã¦ãããããè¨äºä¸ã®ãããããªãé¨åãä¿®æ£ãã¾ããã UPDATE Nov 2016 æ¬è¨äºã¯çè èªèº«ãæªçãªææã«æ¸ãããã®ã§ãä»èªã¿è¿ãã¦ã¿ãã¨ããä¸æ£ç¢ºãªè¡¨ç¾ããã£ãããæ¢ã«ããè¯ãæ段ã«ç½®ãæãããã¦ããå 容ãå«ã¾ãã¾ãã足ãããç¨åº¦ã«ãèªã¿ãã ããã 1. ã¯ããã« ãã®è¨äºã®æ³å®èªè ç§ Vagrantã¨Dockerãã©ã¡ããååã ãã¯ç¥ã£ã¦ãã¨ããæ¹ ã¤ã³ãã©æ§æã®ã³ã¼ãåã¨å ±æã«èå³ããããã©ã¾ã 触ã£ã¦ãªãã¨ããæ¹ å種ã½ããã®æ¦è¦ã¨å©ç¨ã·ã¼ã³ã«ã¤ãã¦è»½ã触ãã¤ã¤ã調ã¹ãå 容ãã¾ã¨ãã¦ããã¾ããã ï¼å·çæç¹ã§ã
ããã«ã¡ã¯ï¼@at_grandpa ã§ãã 社å åå¼·ä¼ã§dockerã«ã¤ãã¦è©±ãæ©ä¼ãããã¾ããã 以ä¸ã«ãåå¼·ä¼ã§ä½¿ç¨ããã¹ã©ã¤ããè¼ãã¾ãã ãdockerã£ã¦èãããã¨ãããã©ãªããªãã ï¼ãã¨ãã人åãã«ä½ãã¾ããã ï¼èªåããã®ç«ã¡ä½ç½®ã ã£ãã®ã§ï¼ ã¯ãããã¦ã®docker from at_grandpa å 容ã¨ãã¦ã¯ä»¥ä¸ã«ãªãã¾ãã ç¾å¨ã®ãµã¼ãã¼éç¨ãæ±ããåé¡ ( p.9 ) dockerãæ¯ããæè¡ ( p.56 ) AUFS LXC å®éã«dockerã使ãæµã ( p.85 ) pingã¨vimãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã dockerã®ãã®ä»ã®æ©è½ ( p.113 ) AUFSãLXCã«ã¤ãã¦ã¯ã以ä¸ã®ãµã¤ããå人çã«ããããããã£ãã§ãã Dockerãå©ç¨ãã¦ããAUFSã¨LXC ã¹ã©ã¤ãå ã§ä½¿ç¨ããURLã¯ãã¡ãã§ãã Docker: Linuxã³ã³ããã使ã£ã¦ã¢ããª
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}