7/16 hidekuroãµã³ããã®ã³ã¡ã³ããåãã¦ä¿®æ£ Dockerã®ã³ã³ããã§åä½ä¸ã®ã·ã§ã«ã¸ã®æ¥ç¶æ¹æ³ sshdãã³ã³ããå ã«ç«ã¦ããã¨ãªãã«ã·ã§ã«ã«æ¥ç¶ããæ¹æ³ã¨ãã¦ä»¥ä¸ã®2ã¤ãããã docker attach ã³ã³ããå docker exec -it ã³ã³ããå /bin/bash ãããããã®2ã¤ã®éãã£ã¦ãªã«ã? ã¨ãããã¨ã§æ´çãã¦ã¿ãã docker attach ã³ã³ããå ãã£ã¡ã¯åç´ã«dockerã³ã³ããå ã§æ¢ã«èµ·åãã¦ããã·ã§ã«ã®æ¨æºåºåã«ã¤ãªããã¤ã¡ã¼ã¸ï¼ï¼ ã³ã³ããã§èµ·åãã¦ããPID=1ã®ããã»ã¹ã®æ¨æºå ¥åºå(STDIN/STDOUT)ã«æ¥ç¶(attach)ããã docker exec -it ã³ã³ããå /bin/bash ãã£ã¡ã¯dockerã³ã³ããã§ä»»æã®ã³ãã³ããå®è¡ãããã -itãªãã·ã§ã³ã«ã¤ãã¦ã¯æå³åãã¯ä»¥ä¸ã®éãããã ãªãã·ã§ã³å
{{#tags}}- {{label}}
{{/tags}}