ããã«ã¡ã¯ãCTOã®é¦¬å ´ã§ãã æè¿å©ç¨ããæ©ä¼ãå¢ãã¦ããdockerãã¿ã§ãã nginxãåããã¨ãã®Tipsã3ã¤ç´¹ä»ãã¾ãã foregroudã§èµ·åãã dockerã§ã¯ã³ãã³ããforegroundã§åãããªãã¨ã³ã³ãããåæ¢ãã¦ãã¾ãã¾ãã nginxã¯ããã©ã«ãã¯ãã¼ã¢ã³ã¨ãã¦åãã®ã§ãforegroundã§åãããã«è¨å®ãã¾ãããã nginx.confã§è¨å®ãããªãããã§ãã daemon off; Dockerfileã®èµ·åã³ãã³ãã§æå®ãããªãããã§ãã CMD ["/usr/sbin/nginx", "-g", "daemon off;"] åçãªè¨å®ãå¤é¨åãã ã¤ã¡ã¼ã¸ã®ä¸ã«è¨å®å¤ãå
¥ãã¡ããã®ã¯ããµãã§ãããã ã³ã³ããèµ·åæã«åçã«è¨å®ããããã®ã§ãã dockerã®å ´å㯠docker run æã« -e ã§ç°å¢å¤æ°ãæå®ã§ããã®ã§ä½¿ãã¾ãããã do
{{#tags}}- {{label}}
{{/tags}}