å ¨å½1å2000ä¸ã® Docker ãã¡ã³ã®çããããã«ã¡ã¯ã MySQL ã®èµ·åãã¨ã¦ã¤ããªãé ãã®ã¯æåãªè©±ã ã¨ããã Docker ã³ã³ããã®èµ·åã¯ãªããªãæ©ãã®ã§ã MySQL ã使ã£ã¦ãããããªãã¹ããé«éåããã±ã¼ã¹ã§æç¨æ§ãèªããããã®ã§ã¯ãªããã¨æã£ã¦ PoC ãæ¸ãã¦ã¿ãã ï¼å®£ä¼ï¼ãããã£ã話ãå«ã㦠YAPC ã§ãã¼ã¯ãããã®ã§ SNS ç㧠upvote ãé¡ããã¾ãï¼ ( â'Ï')â 楽ããã¢ãã«å±¤éçº - YAPC::Asia Tokyo 2014 ï¼å®£ä¼ãããï¼ MySQL ã使ã£ããã¹ã MySQL ã使ã£ããã¹ããããå ´åãã ããã次㮠2 ãã¿ã¼ã³ã«ãªãã MySQL ããã¹ãã®ãã³ã«èµ·åãã¦ã¯ãªã¼ã³ãªç¶æ ã§ä½¿ã ãã¼ã«ã«ã«ãã¼ã¢ã³ã¨ãã¦èµ·åãã MySQL ã«æ¥ç¶ã㦠DROP TABLE ã TRUNCATE ã§ã¯ãªã¼ã³ãªç¶æ ã«ãã¦ä½¿ã ã ãã©ã
è¿½è¨ ã¯ã¦ãã§ã¤ã£ãã¿ãããã¾ãã ããå®è¡ããã«ã¬ã³ããã£ã¬ã¯ããªã¯ /var/lib/docker/execdriver/native/$id ã使ãã®ãæ£ããããã§ããï¼æ å ±èªã¿éãã¦ããï¼ãã¡ãã«ã¯ container.json ãããã®ã§ãã½ã¼ã¹ããªã¼ããã³ãã¼ãã¦ããå¿ è¦ãªãã§ããã ã¾ããã³ã³ãã ID åå¾ã¯ãdocker ps -q --no-trunc ã®æ¹ãè¯ããã¨ãæãã¦ããã ãã¾ããã ã¤ã£ãã¿ã«ãããã£ã¦ãæå¾ã®æ¹ã®èª¬æã¨ã·ã§ã«é¢æ°æ¸ãæãã¾ããã ã¤ã£ãã¿ãããã¨ããããã¾ãï¼ tl; dr ã¿ã¤ãã«ã¾ã¾ çµç·¯ Docker ã§ã¤ãã£ãã³ã³ããã®ä¸ã«å ¥ã£ã¦ç¶æ ã確èªããããã«ãã³ã³ããå 㧠sshd ãç«ã¡ä¸ãã¦ã¢ã¯ã»ã¹ãããã£ã¦ãªãã¨ã以åãã£ã¦ããã§ãããã³ã³ããå 㧠sshd ãç«ã¡ä¸ãããã¨ããããæ¹ããã¾ãã¡ã ããããããã³ã³ããã®ä»çµã¿ããèããã°
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã Docker Hubå ¬éã®ã¢ãã¦ã³ã¹ããã£ãã®ã§ãæ©éDocker Hubã¨GitHubãé£æºããã¦mod_mrubyã®å®è¡ç°å¢ãDockerã¤ã¡ã¼ã¸ã¨ãã¦ä½ã£ãä¸ã§ããããMacä¸ã®Vagrantã§åãCoreOSå ã®Dockerç°å¢ã«ãããã¤ãã¦ã¿ã¾ããã æ¬ã¨ã³ããªã§ã¯mod_mrubyã¨ãã¦ãã¾ããããã¯éè¦ã§ã¯ãªããèªèº«ãéçºãã¦ããGitHubã®ã¢ããªã±ã¼ã·ã§ã³ã«ç½®ãæãã¦èªãã§é ããã¨ã便å©ããè¦ãã¦ãããã¨æãã¾ãã 試ãã¦ã¿ãã¨ãé常ã«ç°¡åã«Dockerã¤ã¡ã¼ã¸ãä½æã§ããä¸ã«ãè¿ éã«mod_mrubyã®è»½éãªå®è¡ç°å¢ããããã¤ã§ããã®ã§ããã®æµããç°¡åã«ç´¹ä»ãããã¨æãã¾ãã Docker Hubã«ã¢ã«ã¦ã³ããä½ã£ã¦Git
æ¨å¹´ããImmutable Infrastructureã¨ããè¨èãåºå§ãã¦ããµã¼ãã¼ãç°¡åã«ä½ã£ã¦å£ãã¨ããæ½®æµãåºå§ãã¾ãããã¾ãããµã¼ãã¼ç®¡çãç°¡åã«ãããã¼ã«ã¨ãã¦Dockerã¨ãããã®ãèå ãæµ´ã³ã¦ããããã¾ã©ãã®ãµã¼ãã¼ç®¡çè ã«åãå ¥ãããã¦ãã¾ããã ä»åã¯ããã®Dockerãã¤ã³ã¹ãã¼ã«ãã¦LAMPç°å¢ãæ§ç¯ããã¹ããããè¦ã¦ããããã¨æãã¾ãã Immutable Infrastructureã¨ã¯ï¼ IaaSåã®ã¯ã©ã¦ããVPSã®å°é ã«ãã£ã¦ãç°¡åã«ä»®æ³ãµã¼ãã¼ãç«ã¡ä¸ããããç°å¢ãæ´ã£ã¦ãã¾ããã ã¨ã¯ããããµã¼ãã¼ã®ç«ã¡ä¸ããããã®ã¯ã·ã¹ãã æ§ç¯æã¨ãã·ã¹ãã è¦æ¨¡ã大ããããæã«éããããµã¼ãã¼ã®åä½ãå¤ããããã¢ããªã±ã¼ã·ã§ã³ã®ã¢ãããã¼ããããã¨ãã¯ã稼åãã¦ãããµã¼ãã¼ã®ä¸èº«ãä¿®æ£ããã¨ããã®ãå¾æ¥ã®ããæ¹ã§ããã ãããImmutable Infrastruc
ä»ããã§ãéã«åãDockerã®åºç¤ãã³ã³ããã¨ã¯ä½ããDockerfileã¨ã¯ä½ããDocker Meetup Tokyo #2 ã³ã³ããåä»®æ³åã®æè¡ã¨ãã¦æ³¨ç®ããã¦ããDockerã®åå¼·ä¼ãDocker Meetup Tokyo #2ãã4æ11æ¥ã«ã°ã¼ã°ã«æ±äº¬ãªãã£ã¹ã§éå¬ããã¾ããã ãã®åå¼·ä¼ã«ã¯å®å¡100åã®ã¨ããã¸400åãè¶ ããç³ãè¾¼ã¿ããããåå ã§ããªãã£ãæ¹ãå¤ãã£ãã¨æãã¾ããæ¬è¨äºã§ã¯ãæåã®ã»ãã·ã§ã³ã¨ãã¦è¡ããã森åä¹æ°ã«ãããä»ããã§ãéã«åãDockeråºç¤+Docker 0.9æ¦è¦ãããã¤ã¸ã§ã¹ãã§ç´¹ä»ãã¾ãããã åèè¨äº 2013å¹´ã®Dockerç»å ´ããç¾å¨ï¼2018å¹´ï¼ã¾ã§ãæ¯ãè¿ãããã®æ¬¡ã®æ®µéãå±æããè¨äºããåç §ãã ããã Dockerã³ã³ããæ代ã®ç¬¬ä¸ç« ã®çµãããããã¦ç¬¬äºç« ã®å±æãªã© ä»ããã§ãéã«åãDockeråºç¤ æ ªå¼ä¼ç¤¾ãããã²ã¼
ã¯ããã« ã¿ãªãã¾ãã¯ããã¾ãã¦ãå è¤ã¨ç³ãã¾ããæè¿æ³¨ç®ãéãã¦ããä»®æ³åæè¡ã®ãã³ã³ãããã«é¢ããé£è¼ãå§ãããã¨ã«ãªãã¾ããããããããé¡ããããã¾ãã ã³ã³ãã¥ã¼ã¿ã®æ§è½ãåä¸ããä»®æ³åã¨ããè¨èãä¸è¬çã«ãªãã¾ãããå¾æ¥ã¯VPSçã®ãµã¼ãã¹ãIaaSãã¯ã©ã¦ãã¨ãã£ããã¼ã¯ã¼ãã¨å ±ã«èªããããã¨ãå¤ãã£ãä»®æ³åã§ãããæè¿ã§ã¯éçºè èªèº«ã®PCä¸ã§ä»®æ³åã使ã£ã¦ãã¹ãç°å¢ãä½æãã使ãçµãã£ããæ¶å»ããã¨ãã使ããæ¹ãå¢ããä»®æ³åæè¡ãæ±ãã¨ã³ã¸ãã¢ããã¤ã³ãã©ã¨ã³ã¸ãã¢ããã¢ããªéçºè ã¾ã§åºããªãã¾ããã ã¾ããå¾æ¥ã¯ä»®æ³çãªãã·ã³ãã³ã³ãã¥ã¼ã¿ä¸ã§å®ç¾ããVMwareãHyper-VãKVMã¨ãã£ãæè¡ã話é¡ã«ãªããã¨ãå¤ãã£ããã¨ã«å¯¾ããæè¿ã§ã¯Immutable Infrastructureã¨ãã£ããã¼ã¯ã¼ãã¨å ±ã«ãã³ã³ãããã話é¡ã«ãªããã¨ãå¢ãã¾ããããâ ã³ã³ãããã¨ã¯
Immutable Infrastructure Conference #1 : ATND 2014/03/25 Immutable Infrastructure Conference #1 #immutableinfra - Togetterã¾ã¨ã æè¿ã¯ææ©ããºã¯ã¼ãåããæãå åãããImmutable Infrastructureãããã®é·ãããã¬ã¼ãºãçºé³ããéã«éä¸çºé³ãåã人ãå¾ã絶ããªãä»æ¥ãã®é ãçæ§ããããéããã§ããããã(çºé³ã«æ©ãã§ãããä½ã¨ãåã¾ãªãããã«ãããï¼ã¨ããæ¹ã¯ä»¥ä¸ã®ã¨ã³ããªãåèã«ãã¦ã¿ãäºããå§ããã¾ã) [å°ãã¿]åã¾ãã«Immutable Infrastructureã¨è¨ãããã« ï½ Developers.IO ãã¦ãæ¬é¡ã§ãããã¡ãã®ãImmutable Infrastructure Conference #1ããçºè¡¨ã¨åæã«åå å¿åè ã殺
:D ãªä¼ç¤¾ã®åéãã¡ãããã¿ã ã¼ãã¶ããããµããªãã¡ããã®å宿ãããã¼ãã£ã¦è©±ãã¦ãã®ã§ããããªé¢ç½ããã¨ã¯ãã²å¤é¨ããã®åå ãå¯è½ã«ããã¹ãã ï¼ã£ã¦æ¤æ ¨ããªããçªã£è¾¼ãã ããããã°ãï½ãã£ã¦è¨ã£ã¦ãããã®ã§å宿åå ãã¾ããã æ¦è¦ã¯ãããªæã Immutable Infrastructure çãªãªã«ãããã ãã¼ã¯ã¼ã ã»Vagrant ã»Docker ã»Mesos ã»Serf ã»Sensu ? ã»Jenkins ã»ã¨ãã¨ã ããã㨠ã»ä¸ã®ãã¼ã¯ã¼ããã¦ãã¨ãã«çµã¿åãããã¨ãªã«ããããããã®åºã¦ãããã ã»Jenkins à Docker ã¨ã ã»Mesos à Vagrant ã¨ã ã»ãã 触ã£ã¦ã¿ãã ãã§ãè¯ãã¨ãã 主å¬è ã® @sonots ããã¯ä¸è¨ã®ãããªæ¦è¦æ¸ããããã«å ¨ç¶é¢ä¿ãªãfocuslight(ã®ä¸»ã«ããã¥ã¡ã³ããã¼ã¸)ããã£ã¦ã åã¯ãã¨ããããdockerã
ååã®Vagrantã¨SSDãªVPS(Digital Ocean)ã§1æé1åã®ä½¿ãæ¨ã¦é«éãµã¼ãç°å¢ãæ§ç¯ãã - Glide Note - ã°ã©ã¤ããã¼ãã®ç¶ãã Vagtant+DigitalOceanã ãã§ãåå便å©ãªãã§ãããå æ¥CentOS6.5ããªãªã¼ã¹ãããæ£å¼ã«Dockerããµãã¼ããããã®ã§ãDigitalOceanä¸ã«CentOS 6.5+Dockerãªç°å¢ãç¨æãã¦ã¿ãã ã¨ãã£ã¦ãã2013å¹´12æ20æ¥ç¾å¨DigitalOceanã§ã¯CentOS 6.5ãªimageãæä¾ããã¦ããªãã®ã§ãé¸æåºæ¥ãCentOS 6.4ã®ã¤ã¡ã¼ã¸ã使ããªãããVagrantãå©ç¨ãã¦ã³ãã³ãä¸çºã§CentOS 6.5+Dockerç°å¢ãä½ããããã«ããã glidenote/vagrant-docker-digitalocean ããã¯ä½ Vagrantãå©ç¨ãã¦ãDigital
Dockerã®æä½ã¯ãã³ãã³ãããã ãã§ã¯ãªãããªã¢ã¼ãAPIçµç±ã§ãã§ãã¾ãã APIã®èª¬æã¯ããã«ããã¾ãã http://docs.docker.io/en/latest/api/docker_remote_api/ ä»åã¯ããã®APIã使ã£ã¦ã³ã³ãããç°¡æçã«æä½ã§ããWebã¢ããªãä½ã£ã¦ã¿ã¾ããã ã¨ããããå®è£ ããæ©è½ã¯ã 稼åä¸ã³ã³ããã®ä¸è¦§ 稼åä¸ã³ã³ããã®åæ¢ ã³ã³ããã®ç«ã¡ä¸ã ã§ãã ä½ã£ããã® ãããªæãã®è¦ãç®ã§ãã ç»åãè¦ãã°åããã¨æãã¾ãããæä½ã¯ãã1ãã¼ã¸ã§å®çµãã¦ãã¾ãã ã³ã¼ã Githubã«ããã¾ããã https://github.com/kurochan/docker-panel å¦çã¯ã»ã¼web.rbã§è¡ã£ã¦ãã¦ããã¨ã¯htmlã®ã¬ã³ããªã³ã°ãããã§ãã ã³ã¼ãã¯å ¨é¨ã§50è¡ãªããããã§ãã Sinatraã使ãã¨ã·ã³ãã«ã«ä½ãã¦ããã§ãã
ã«ããã±ãã æè¿Dockerã«ã©ã£ã·ããªãã§ãããDockerã«ã¤ãã¦è²ã å°é·Tipsãããã®ã§ããããã¹ããã©ã¯ãã£ã¹é¢¨ã«ã¾ã¨ãã¦ã¿ã¾ããã Dockerã³ãã³ããåãããã©ãããããããã¸ã§ã¯ãã®Dockerfileãæ¸ãããã«ãã¦ã¿ãããã ãã©ãããã¿ãããªäººã«ãªã¹ã¹ã¡ã ã¤ã³ã¹ãã¼ã«ç·¨ 1. Macã§Dockerã®ã¤ã³ã¹ãã¼ã«ã§è©°ã¾ã£ã ãªããããããããªãã¨ã©ã¼ãåºã¦ã¤ã³ã¹ãã¼ã«åºæ¥ãªããã ãã©ï¼ï¼ versionã確èªãã¦ææ°ã®ç°å¢ã«ãã¾ããããã¨ãã«xCodeã¨VirtualBoxã¨vagrantã®ãã¼ã¸ã§ã³ã¯ææ°ã®ãã®ã§ãªãã¨ãã¡ã§ãã $ brew -v Homebrew 0.9.5 $ VirtualBox --help Oracle VM VirtualBox Manager 4.3.6 (C) 2005-2013 Oracle Corporation All ri
ããã«ã¡ã¯ï¼@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}}