æ¦è¦ Web ã¢ããªã±ã¼ã·ã§ã³ãéçºãã¦ããã¨ãã«ãéçºç°å¢ã« MySQL ã Redis ãç¨æããã¼ã¸ã§ã³ãæãããã Redis ã¯ãã£ãã·ã¥ã«ãã使ã£ã¦ãªããå¿ é ãããªãããéçºç°å¢ã«ç¡ãå ´åã®ã³ã¼ããæ¸ãã¦â¦â¦ ã¨ãããããªãã¨ã2017å¹´ã«ããªã£ã¦ãããããªãã®ã§ãDocker ã使ã£ã¦è¯ãæãã«ãã£ã¦ããã¾ãã Docker ã Docker Compose ã«é¢ããåºæ¬çãªèª¬æã¯å²æããã®ã§ãå ¬å¼ããã¥ã¡ã³ããããã£ã¦ãã ããã ç®æ¨ ã³ãã³ãä¸çºã§å¿ è¦ãªãµã¼ãã¹ç¾¤ãå ¨ã¦ç«ã¡ä¸ããããã«ãã Docker Compose ã使ãã1ãµã¼ãã¹ãã¨ã«1ã³ã³ãããç«ã¡ä¸ãã vendor ã node_modules ã¯ããã¹ãå´ã®ãã®ã¨å®å ¨ã«åé¢ãããOS ãéãå ´åãNative extension ãããã¨åé¡ã®åå ã«ãªãã®ã§é¿ãããã ãã¹ãå´ã§ã¯ã¨ãã£ã¿ã¨ git ãã
ã¢ããªã±ã¼ã·ã§ã³ã®åä½ç°å¢ãã³ã³ããåããããã«ããã¼ã¹ã¨ãªãubuntuãcentosã®ã¤ã¡ã¼ã¸ã«å¿ è¦ãªã¢ããªã±ã¼ã·ã§ã³ãä¸ã¤ãã¤æåã§ã¤ã³ã¹ãã¼ã«ãã¦ä½æãã¦ããæ¹æ³ãããã¾ãããã¤ã³ã¹ãã¼ã«æé ãè¨è¿°ããDockerFileã使ã£ã¦ä½æããæ¹æ³ãããã¾ãã ã¤ã³ã¹ãã¼ã«æé ãDockerFileã§ã¹ã¯ãªããåãã¦ãããã¨ã§åå©ç¨æ§ãé«ã¾ãã¾ãã ä»åã¯DockerFileã«ããinfoScoopã稼åããããµã¼ãã¼ã®ã¤ã¡ã¼ã¸ãä½æããã³ã³ãããèµ·åããã¨ããã¾ã§ã®æé ããç´¹ä»ãããã¨æãã¾ãã Dockerã®ã¤ã³ã¹ãã¼ã« Dockerã¯Linuxã§åä½ãã¾ãã®ã§ãLinuxãã·ã³ãç¨æãã¾ãã ä»åã¯ubuntuãç¨æããã®ã§apt-getã§Dockerãã¤ã³ã¹ãã¼ã«ãã¾ãã sudo apt-get install docker.io WindowsãMacã®å ´åã¯boot2doc
Docker ã使ãç¶ãã¦ã³ã³ãããã¤ã¡ã¼ã¸ãæ¾ç½®ãã¦ããã¨å·®åã ãã¨ã¯ããã ãã£ã¹ã¯ã®æ¶è²»ãå¢ãã¦ãã£ã¦ã æ¸ãè¾¼ã¿ã¨ã©ã¼: ããã¤ã¹ã«ç©ºãé åãããã¾ãã (ENOSPC, write error: No space left on device) ã¨ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ãã 2017-03-18 è¿½è¨ æè¿ã®ãã¼ã¸ã§ã³ã§ã¯ docker system prune ã使ãã®ãè¯ãããã§ãã å¤ããã¼ã¸ã§ã³ã使ãã¨ãã®åèã¨ãã¦ã以ä¸ã®è¨è¿°ã¯å¤ãã¾ã¾æ®ãã¦ããã¾ãã ã³ã³ããã®åé¤ docker rm ã® Eamples ã«ããããã« ã§åæ¢ãã¦ããã³ã³ãããåé¤ã§ãã¾ãã å®è¡ä¸ã®ã³ã³ãããããã¨åé¤ã§ããªãã¨ããã¨ã©ã¼ãåºã¾ããã æå³çã«ãã£ã¦ãããã¨ãªã®ã§æ°ã«ããå¿ è¦ã¯ããã¾ããã å ¬å¼ã®ããã¥ã¡ã³ãã«ãæ¸ãã¦ããæ¹æ³ãªã®ã§ã ã³ã³ããã®åé¤æ¹æ³ã¯ãã®ããæ¹ã§åé¡ãªãã¨æ
çµè« 以ä¸ã®æé ã§ä½ãã®ãå¹ççã§ãã ãã¼ã¹ã«ãã Docker ã¤ã¡ã¼ã¸ã決ãã docker run -it <docker-image> sh ã§ã³ã³ããå é¨ã§ä½æ¥ 1è¡ãã¤ããã¾ããã£ããã©ããã«ã¡ã¢ 失æããããã£ãã exit ãã¦å度 docker run ãã¡ã¤ã«ã®åãè¾¼ã¿ããã¼ãã®å¤é¨å ¬éãå¿ è¦ãªããªãã·ã§ã³ä»ã㧠docker run å ¨é¨ãã¾ããã£ãã Dockerfile ã«ãã ãããã§è¦ããã¨ã¯ãªãã§ããããã docker build ã§è©¦è¡é¯èª¤ããªãã Dockerfile ãä½ãã¨ããããããã¯ãããã«è¦è¡ã§ãã é ã ãããã°ãã«ããï¼ã³ã³ããççºããï¼ï¼ã£ã¦æ°æã¡ã«ãªãã¾ãã ãããåå ã§ãDocker 使ããªã 便å©ãããªã ãã¨æã£ã¦ããã®ãªãããã¯åéãã§ãã æé 詳説 試ãã« ip-api.com ã«ãªãã¼ã¹ãããã·ããã ãã® Nginx ã¤
Docker Toolboxãææ°çã«å ¥ããªããããã¦ãã¢ã³ã¤ã³ã¹ãã¼ã«ããæ¹æ³ãæ¢ãããã å ¬å¼ãªãã¸ããªã«ã¢ã³ã¤ã³ã¹ãã¼ã«ç¨ã®ã·ã§ã«ã¹ã¯ãªãããç½®ãã¦ãã£ãã ãããæµããããã¬ã¤ã«ã¢ã³ã¤ã³ã¹ãã¼ã«ã§ããã ä½ãèµ·ããã®ãã¯ã·ã§ã«ã¹ã¯ãªããã®ä¸èº«ãè¦ãæ¹ãæ©ãã大ãã¦é·ããªãã®ã§ã 使ãæ¹ã¯git cloneãã¦ãã¦ãå®è¡ããã ãã $ git clone git@github.com:docker/toolbox.git $ cd toolbox $ sudo osx/uninstall.sh Password: Remove all Docker Machine VMs? (Y/N): Y machine does not exist, assuming it has been removed already Successfully removed default Removin
注æ æ¬ä»¶è¨äºã§ãããç§ã®ä¸é©åãªè¡åï¼æ¾ã£ãã¹ã¯ãªãããæ¤è¨¼ãªãèµ°ãããï¼ãåå ã§ãããdockerã¯ï¼ç¹ã«ä½ãããªãã¨ãï¼å±éºãã¨ã®èª¤è§£ãçæ§ã«ä¸ããç¹ããè¿·æãããããããã¾ãããç³ã訳ãããã¾ããã æ¡æ£ããã¦ããè¨äºãåé¤ããã®ã¯ãããªã誤解ãæããããªãã¨æãã¾ããã®ã§ãåé ã«æ³¨æãä»è¨ãã¦ããã¾ãã以ä¸ã®è¨äºã¯ããèªåãä½ãã¦ããããã¡ãã¨æ¤è¨¼ã§ããªãã¨ã»ãã¥ãªãã£ãã¼ã«ãçã¿åºããã¨ããæå³ã§åèã«ãã¦é ããã°å¹¸ãã§ãã è¿½è¨ Twitterãã¯ã¦ãã§è¨åããã ãã¾ããçæ§ããããã¨ããããã¾ãã æ¬ä»¶ã¯pullãã¦ããã¤ã¡ã¼ã¸ãæªæããéçºè ã«ãããã®ãã©ããã«ãããããä¸é©åãªè¨å®ããã¦ããã¨èµ·ããå¾ã¾ãã â»ã³ã¡ã³ãæ¬ã«è³ªåã¸ã®åçã¨ããå½¢ã§ãç§ããã®ã¨ãã«èµ°ããã¦ããã¤ã¡ã¼ã¸ã®ä¸è¦§ãæãã¦ããã¾ãããã©ã®ã¤ã¡ã¼ã¸ãè©å¤ãããã®ã ã¨æãã¾ãã çæ§ã«ãããã¾ãã¦ã¯ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}