{"id":351,"date":"2023-03-17T12:03:03","date_gmt":"2023-03-17T03:03:03","guid":{"rendered":"https:\/\/ahnbk.dev\/?p=351"},"modified":"2023-03-17T12:05:10","modified_gmt":"2023-03-17T03:05:10","slug":"docker-%eb%82%b4%eb%b6%80%ec%97%90%ec%84%9c-bash-%ec%9e%90%eb%8f%99%ec%99%84%ec%84%b1-%ea%b8%b0%eb%8a%a5-%ed%99%9c%ec%84%b1%ed%99%94","status":"publish","type":"post","link":"https:\/\/ahnbk.dev\/?p=351","title":{"rendered":"docker \ub0b4\ubd80\uc5d0\uc11c bash \uc790\ub3d9\uc644\uc131 \uae30\ub2a5 \ud65c\uc131\ud654"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">docker\ub97c \uc124\uce58\ud558\uace0, \ub0b4\ubd80\ub85c \uc9c4\uc785\ud574\uc11c \uc774\ub7f0\uc800\ub7f0 \uc791\uc5c5\uc744 \uc9c4\ud589\ud560 \ub54c, bash\uc758 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc774 \uc5c6\uc5b4 \ub9e4\ubc88 \ud0c0\uc774\ud551\uc744 \ud574\uc57c\ud558\ub294 \ubd88\ud3b8\ud55c \uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub85c apt install \ud6c4 \ud328\ud0a4\uc9c0\uba85\uc744 \uc218\ub3d9\uc73c\ub85c \uc804\uccb4 \uc785\ub825\ud574\uc57c \ud558\ub294 \uac83\uacfc \uac19\uc740 \uc810\uc774\uc694.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash-completion\uc774 \uc124\uce58\ub418\uc9c0 \uc54a\uc544\uc11c\uc778\ub370, \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc73c\ub85c \uc9c4\ud589\ud558\uc2dc\uba74 \uc27d\uac8c \ud574\uacb0\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ apt install bash-completion vim\n$ vi \/etc\/bash.bashrc\n\n\uc8fc\uc11d \ud574\uc81c\n# enable bash completion in interactive shells\nif ! shopt -oq posix; then\n  if [ -f \/usr\/share\/bash-completion\/bash_completion ]; then\n    . \/usr\/share\/bash-completion\/bash_completion\n  elif [ -f \/etc\/bash_completion ]; then\n    . \/etc\/bash_completion\n  fi\nfi\n\n$ source \/etc\/bash.bashrc\n$ rm \/etc\/apt\/apt.conf.d\/docker-clean\n$ apt update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c apt \uba85\ub839 \uc774\uc678\uc5d0\ub3c4 bash \uc258\uc5d0\uc11c \uc790\ub3d9 \uc644\uc131 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>docker\ub97c \uc124\uce58\ud558\uace0, \ub0b4\ubd80\ub85c \uc9c4\uc785\ud574\uc11c \uc774\ub7f0\uc800\ub7f0 \uc791\uc5c5\uc744 \uc9c4\ud589\ud560 \ub54c, bash\uc758 \uc790\ub3d9\uc644\uc131 \uae30\ub2a5\uc774 \uc5c6\uc5b4 \ub9e4\ubc88 \ud0c0\uc774\ud551\uc744 \ud574\uc57c\ud558\ub294 \ubd88\ud3b8\ud55c \uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub85c apt install \ud6c4 \ud328\ud0a4\uc9c0\uba85\uc744 \uc218\ub3d9\uc73c\ub85c \uc804\uccb4 \uc785\ub825\ud574\uc57c \ud558\ub294 \uac83\uacfc \uac19\uc740 \uc810\uc774\uc694. bash-completion\uc774 \uc124\uce58\ub418\uc9c0 \uc54a\uc544\uc11c\uc778\ub370, \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc73c\ub85c \uc9c4\ud589\ud558\uc2dc\uba74 \uc27d\uac8c \ud574\uacb0\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uc774\uc81c apt \uba85\ub839 \uc774\uc678\uc5d0\ub3c4 bash \uc258\uc5d0\uc11c \uc790\ub3d9 \uc644\uc131 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[69,70,26,71],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-docker","tag-apt","tag-bash-completion","tag-docker","tag-71"],"_links":{"self":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":3,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}