Dockerã§ã³ã³ãããèµ·åããéã«ã次ã®ããã«cpu-sharesã¨memory-limitãæå®ãããã¨ãã§ãã¾ãã # docker run -c 256 -m 512m hogehogeããã¯å é¨çã«ã¯cgroupsã使ã£ã¦ãã¾ãããRHEL7ã®Dockerã§ã¯ãsystemdã¨é£æºãã¦cgroupsã®å¶å¾¡ãè¡ã£ã¦ãã¾ãããã®è¾ºãã®è§£èª¬ã§ããcgroupsãã®ãã®èª¬æã¯ä¸è¨ãåç §ä¸ããã ã»Control Groups (cgroups) ã³ã³ããããçæãããUnit ã¾ãããã¹ãç¨ã«ContOS6ã®ã³ã³ãããèµ·åãã¦ãä¸ã§topã³ãã³ãã§ãå®è¡ãã¦ããã¾ãã # docker run -it -c 256 -m 512m centos /bin/bash bash-4.1# topå¥ã®ç«¯æ«ãããã°ã¤ã³ãã¦ãã³ã³ããIDã確èªãã¾ãã # docker ps CONTAINER
{{#tags}}- {{label}}
{{/tags}}