2017/04/13 ãDockerãå©ç¨ããéçºäºä¾ï½Dockerå°å ¥ããéç¨ã¾ã§ï½ãã§ã®çºè¡¨è³æã§ãã https://career.levtech.jp/hikalab/event/detail/89/Read less
ãããªãããæ¹ # ãµã¼ãã¹ã®ä½æ $ docker service create --name hogehoge -p 41311:80 fuckservice # ã¤ã¡ã¼ã¸ã®æ´æ° $ docker service update --image hogehoge:latest fuckservice # ãããã¤å å¶ç´ã®è¿½å $ docker service update --constraints-add node.hoge==huga fuckservice ããããããæ¹ # ãµã¼ãã¹ã®ä½æ $ docker service create --name hogehoge fuckservice # ã¤ã¡ã¼ã¸ã®æ´æ° $ docker service create hogehoge -p 41312:80 fuckservice_v2 ããã¦ããã§ãªãã¼ã¹ãããã·ã®è¨å®ãåãæ¿ãã #
é±æ«ã®Twitterã®å¿é ¬ãé¢ç½ãã£ãã®ã§ã¡ã¢ ã¿ã¤ãã«ã¯ãã¡ãããæ¡å³¶ãé¨æ´»ãããã£ã¦ããã®ãã¯ãªã§ããããããã¯ããè¦ããã¨ãªãã§ãã Kelsey Hightower ï¼Googleã®Kubernetesã®ä¸ã®äººï¼ ãã¾ãçææä¸ There are many application platforms that support Docker images without the Docker daemon. Which one was first I have no idea. â Kelsey Hightower (@kelseyhightower) 2016å¹´7æ28æ¥ Dockerã¢ããªåããã®ã£ã¦ããDockerç´æ£ã¨ã³ã¸ã³ãããªãããã¼ ãã¡ããï¼Docker CTOã®ï¼ Solomon Hykes ã¯åè« @kelseyhightower pseudo-support.
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? å®éã«ã¯ãã¾ã æ¬å½ã®æ¬çªç°å¢ã§ã¯éç¨ã§ãã¦ãªãã¦éçºç¨ã®ã¹ãã¼ã¸ã³ã°ã§éç¨ãéå§ã§ãããããã§ãä»ã«ããããã¨ä¸æ¯ãããã ãã©ãããç¨åº¦ç¥è¦ãæºã¾ã£ãã®ã§ã¾ã¨ãã¦ããã ã¡ãªã¿ã«ãè¦æ¨¡ã¯ãããªã«å¤§ãããªãããã¼ã¿éã¯å¤ãã¢ããªã±ã¼ã·ã§ã³ã§éç¨ç°å¢ã¯AWSã®ECSãæ³å®ãã¦ãããç¾æç¹ã§æ®éã®EC2ãã¼ãã¨ã³ã³ããã§ä¸¦è¡ç¨¼åãã¦ããã docker-swarmãªãã§èªåã§ã³ã³ãããã¼ã«ãæ§ç¯ãã¦ãããã®ã ããããããã¨ãµã¼ãã¹ãã£ã¹ã«ããªã¨ãèããªããã°ãããªããã¨ãå¢ããã®ã§ãå¾åãã«ãã¦ããã (注: ããªããµã¼ãã¹åºæã®äºæ ãå«ã¾ã
以ä¸ããã£ãã説æãã¦ããããã¨æãã¾ãã > Web Server/Workerã®ç§»è¡Web Server/Workerã®ç§»è¡ å¾æ¥ã¯Heroku(US region)ã«ãµã¼ãããã£ããããæ¥æ¬ããã®ã¢ã¯ã»ã¹ã®å ´åãã¥ã¼ãã³ã°ãã©ãé å¼µã£ã¦ãæ°ç¾msã®é 延ãããã¾ããããããAWS(Tokyo region)ã«ç§»è¡ãããã¨ã§ããã¼ã¸ã表示ããã®ã«è¦ããæéã1/2 ~ 1/3ã¾ã§æ¹åããã¾ããã > DockerDocker 移è¡éå§ç´å¾ã¯èªåãä¸æ £ããªãã¨ãããããã®ã¿ã¤ãã³ã°ã§Dockerãæ¡ç¨ããæ°ã¯ããã¾ããã§ãããããããå®éã«ECSä¸ã§ã®ãããã¤ãæ¤è¨¼ããããDockerã«ã¤ãã¦å¦ç¿ãããã¡ã«ç§»è¡ã®ã¤ã¡ã¼ã¸ãæ´ãã¦ããã®ã§Dockerãæ¡ç¨ãããã¨ã«ãã¾ããã ãã¨ãã¨Herokuã§åãã¦ã㦠The Twelve-Factor App ã«ã»ã¼æ²¿ã£ã¦ããã®ã§ããã£ã¦ã¿ãã¨Do
ãã®è¨äºã¯ã¯ã¦ãªã¨ã³ã¸ãã¢ã¢ããã³ãã«ã¬ã³ãã¼2015ã®1æ¥ç®ã§ããä»åã¯ãæ¢åã®éç¨ããã¼ã«ä¹ããããDockerã¤ã¡ã¼ã¸ã¸ã®chrootã«ãããããã¤ã®èãæ¹ã¨èªä½ã®ã³ã³ã»ãããã¼ã« droot ãç´¹ä»ãã¾ãã github.com èæ¯ Docker æ¬çªå°å ¥ã®èª²é¡ Docker å°å ¥ã®ç®ç Docker + chroot ã®ã¢ã¤ã㢠droot: Dockerã¤ã¡ã¼ã¸ã«chrootããã³ã³ãããã¼ã« droot ã®ä½¿ãæ¹ droot push: Dockerã¤ã¡ã¼ã¸ãtar ballåãS3ã«pushãã droot pull: S3ã«pushããã¤ã¡ã¼ã¸ããã¦ã³ãã¼ããå±éãã droot run: å±éå ã®ãã£ã¬ã¯ããªã«chrootãã droot ã®å®è£ droot push/pull ã®å®è£ droot run ã®å®è£ ãããã¦èªã¿ãã ãã¨ãã èæ¯ Dockerããªãªã¼
çµè« ãã¼ã«ã«ã§ docker ç°å¢ãããããããã©ããã¼ã«ã«ã®ãªã½ã¼ã¹ã使ããããªã人ã«ã¯ docker-machine ã便å©ã§ãã ããã«ãè¤æ°ã® docker ãã¹ããä»äºã§ä½¿ã£ã¦ã人ã¨ãã¯ãåãæ¿ããç°¡åãªã®ã§ãã¨ã¦ããè¦ãã æ¦è¦ èªå㯠Mac ã§éçºãã¦ãã®ã§ããçµæ§ãªé »åº¦ã§ docker build 㧠image ãä½ã£ã¦ã¯è©¦ãã®ç¹°ãè¿ããããããã¦ãã¾ãã MBA ã ã¨ãã·ã³ãã¯ã¼ãæ®å¿µãªæããªã®ã§ãdocker-machine ã使ã£ã¦ Digital Ocean ã« docker ç°å¢ãç¨æãã¦ãã¾ãã¾ãã ãããããã¼ã«ã«ã§ docker run ãã¦ãããã©ãå®ã¯ Digital Ocean ã«ç¹ãã§ããã¨ããæããæ§ç¯ãã¾ãã 注æ å¥ã« boot2docker ãå«ãã¨ãã§ã¯ãªãã§ããåã«ãã¼ã«ã«ã®ãã·ã³ãã¯ã¼ãå¸ãåãããã®ãã¤ã¤ãªã ãã§ãã ç°å¢ Ma
ãã¡ã«ã¯ 2013 å¹´æ«ãããããã£ã¨ docker ã³ã³ãããéç¨ãç¶ãã¦ããç©çãã¹ãããã£ãã®ã ãã©ãæè¿ $ docker ps ã¨ããã¦ãçµæãæ»ã£ã¦ããã®ã« 20 ç§ããããããããã³ã³ããã®èµ·åã¨ãã«ãåããããæéãããã $ /etc/init.d/docker restart ãªã©ã¨ããããããªãã³ã³ããã使ç¨å¯è½ã«ãªãã¾ã§ 3 æéãããããã£ã¦ããã¨ã¯ããããé »ç¹ã«ã³ã³ãããæåã§èµ·åãããçµäºããããããã¹ãã§ã¯ãªããã docker ã®ãã¼ã¢ã³èªä½ãåèµ·åããã¨ãã¯æ¬å½ã«ç¨ãªã®ã§ãã£ã¨æ¾ç½®ãã¦ããã ãã©ããããã«æ¾ç½®ã§ããªããªã£ã¦ããã $ docker ps --all | wc -l ã¨ãã㨠103781 ã¨ããªã£ã¦ã¦ãã´ãã³ã³ãããã¤ã¡ã¼ã¸ã大éã«ãããããã®ã諸æªã®æ ¹æºãªã®ã§ã¯ãªããã¨ããäºæ³ãç«ã¦ãã ããã§ãã®ãããªã¹ã¯ãªããã§ã³ã³ãããæé¤ãã¦ã¿
ããããããï¼ã¶æã»ã© Packer 0.7.5 㧠Docker 1.4+ ã使ã£ã¦ãç¶æ ããdocker builderã使ã£ã¦ãæ°¸é ã«å¦çãçµããããçµãã£ãã¨æã£ãããªããdockerã®ã¨ã©ã¼ã§æ¢ã¾ãã¨ãããã¨ãç¶ãã¦ããã tl;dr;ã¨ãã¦ã¯ãå¤å次ã®ãã¼ã¸ã§ã³ã®Packerã§ç´ãããä»ã¯ããããå½ã¦ã¦ã½ã¼ã¹ããã³ã³ãã¤ã«ããããªãã ãã©ãã¾ããããã°ãå«ãçµç·¯ãã packerã«ã¯-verboseã¿ãããªã®ããªãã¦ãã¾ãç¶æ³ãææ¡ã§ããªãã£ããããã¯PACKER_LOG=1 ç°å¢å¤æ°ãæå®ãããã¨ã§è©³ç´°ãã°ã表示ã§ãããããã§ä»¥ä¸ã®ãããªï¿½ã¨ã©ã¼ãåºã¦ããå¤åãã®ãã°â #1752 2014/12/25 12:21:32 packer-provisioner-shell: 2014/12/25 12:21:32 Retryable error: Error uploading
2014å¹´ã®å¾åãããããDockerï¼Docker Inc.ã¸ã®æ¹å¤ãå¤ãè¦ãããããã«ãªã£ãï¼ãã¡ãããã¨ãã¨æ¸å¿µãå«æªã表æããã²ã¨ã¯ããï¼ï¼ããã象徴ããåºæ¥äºã¨ãã¦CoreOSãã¼ã ã«ããæ°ããã³ã³ããã®Runtimeã§ããRocketã®ãªãªã¼ã¹ã¨ï¼ãªã¼ãã³ãªã¢ããªã±ã¼ã·ã§ã³ã³ã³ããã®ä»æ§ã®çå®ãç®æããApp Containerããã¸ã§ã¯ãã®éå§ããã£ãï¼ CoreOS is building a container runtime, Rocket æ¹å¤ã¯ï¼ã»ãã¥ãªãã£ã§ãã£ããï¼ããã¥ã¡ã³ãããã¦ããªãè¬ã®ä»æ§ããã°ã ã£ããï¼ã³ãã¥ããã£ã®éå¶ã ã£ããï¼ã¨å¤æ¹é¢ã«ãããï¼ãããã¯å ·ä½çã«ã©ããããã¨ãªã®ãï¼ãªãRocketãå¿ è¦ãªã®ãï¼ã¯å ·ä½çã«æ´çããã¦ããªãã¨æãï¼ãããã¯ï¼ä»å¾ã³ã³ããæè¡ã使ã£ã¦ããä¸ã§ï¼ãªã¼ã±ã¹ãã¬ã¼ã·ã§ã³ã¨ãã¨åããããéè¦ãªé¨åã ã¨æãã®ã§ï¼ãã
æ¬è¨äºã¯Docker Advent Calendar 2014ã®1æ¥ç®ã®è¨äºã§ãï¼ Dockerã«ããã³ã³ããåã¯ãªã½ã¼ã¹éé¢ã¨ãã¦ç´ æ´ãããæè¡ã§ããï¼ãããï¼é常ã¯1ã¤ã®ã³ã³ããã«å ¨ã¦ã®æ©è½ãè©°ãè¾¼ããããªãã¨ã¯ããªãï¼ãã¤ã¯ããµã¼ãã¹çã«ã³ã³ãããã¨ã«å½¹å²ãåãï¼ããããæ¥ç¶ãï¼å調ããï¼å ¨ä½ã¨ãã¦1ã¤ã®ãµã¼ãã¹ãä½ãä¸ããã®ãé常ã®ä½¿ãæ¹ã«ãªã£ã¦ããï¼ ã³ã³ããå士ã®æ¥ç¶ã¨è¨ã£ã¦ãï¼ã·ã³ã°ã«ãã¹ãå ã§ã¯ã©ãããã®ãï¼ãã«ããã¹ãã«ãªã£ãã¨ãã«ã©ãããã®ããªã©æ§ã ãªãã¿ã¼ã³ãèããããï¼Dockerã注ç®ããã2014å¹´ã ãã§ãï¼ã¨ã¦ãå¤ãã®ææ³ãèãæ¹ãç»å ´ãã¦ããï¼ åã®è¦³æ¸¬ç¯å²ã§å ¨ã¦ã追ãããã¦ãããã¯åãããªããï¼ç¾ç¶è¦ãããDockerã³ã³ããã®æ¥ç¶ãã¿ã¼ã³ãå®ä¾ã¨å ±ã«ã¾ã¨ãã¦ããï¼ ãªãä»åå©ç¨ããã³ã¼ãã¯å ¨ã¦ä»¥ä¸ã®ã¬ãã¸ããªãcloneãã¦èªåã§è©¦ããããã«ãªã£ã¦ããï¼
ã ãã¶åããDockerï¼Linuxã³ã³ããï¼ã®ããã©ã¼ãã³ã¹ã«ã¤ãã¦ãéããã¨ã¯éãã ãããã©ã©ã®ç¨åº¦éãã®ããããé ããã¨ããããªãä½ãããã©ã¼ãã³ã¹ã«ã¨ã£ã¦éè¦ãªã®ãï¼AUFSãé ãã¨ãããããã®ï¼ãæ°ã«ãªã£ã¦ããã®ã§ãä»å㯠ã§ç´¹ä»ããã¦ãã Docker ã®ããã©ã¼ãã³ã¹æ¤è¨¼ã«é¢ãã IBM ã® Research Report ãèªãã ãReport ã®å 容ããã¼ã¹ã«ãDocker ã®ããã©ã¼ãã³ã¹ã®åæãªã©ãã¾ã¨ãã¦ã¿ãã Report ã®ã¿ã¤ãã«ã¯ An Updated Performance Comparison of Virtual Machines and Linux Containers ã GitHub ã«ãã³ããã¼ã¯ã³ã¼ãã¨å®é¨ãã¼ã¿ãç½®ãã¦ãã£ã¦ã¡ããã¨ãã¦ãã åæ ã¾ããVMã¨ã³ã³ããã®æ´å²ãæ¯ãè¿ãã®ã«ç¥ãã¬ã¯ã¨ã³ã¸ãã¢ã®æ¥ãä»ããèããªããã³ã³ãã/ä»®æ³
From Docker Meetup Tokyo yuguiãããææããããã«ãDockerã«ã¯2ã¤ã®ã¡ãªãããããã ã³ã³ããæè¡ å·®åãã£ã¹ã¯ã¤ã¡ã¼ã¸ã®ã½ã¼ã·ã£ã«ãªã·ã§ã¢ ãããã®ãã¡ãå¾è ã«ã¤ãã¦ã¯Dockerã触ã£ããã¨ã«ããæ¹ãªãããã«ç解ã§ããã ãããDockerãæ®åããæ大ã®è¦å ãããã¦Dockerãæ°ããã£ãç¹ã¯ãå·®åã¤ã¡ã¼ã¸ã®ã·ã§ã¢ããã£ãã·ã¥ã«ãããã«ãä½æ¥ã®ç°¡åãã§ãããã¾ã£ãããªç¶æ ããã¢ããªã±ã¼ã·ã§ã³ã¹ã¿ãã¯ãæ§ç¯ããä½æ¥ãããçãæéã§è¡ããç°å¢æ§ç¯ã®ã¹ã¯ã©ãã&ãã«ããã¨ã¦ã容æã«ãªãã ãããã大æå社ãçªå¦ã¨ãã¦Dockerçéã«åå ¥ãå§ããè¦å ã¯ãããã ãã§ã¯ãªãããã®Dockerã®ãã«ãã®ä¾¿å©ããéãã¦ããã³ã³ããæè¡ã«å¯¾ããä¸éã®ãªãã©ã·ã¼ãããã¨é«ã¾ã£ããã¨ããããã¬ã¼ã¯ã¹ã«ã¼ãªã®ã§ãããã¿ããªãDockerã«è§¦ãå§ãããã¨ã§ããã®ã³ã³ããã®ä¾¿
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}