{"id":818,"date":"2022-09-15T16:16:58","date_gmt":"2022-09-15T08:16:58","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=818"},"modified":"2022-09-15T16:16:59","modified_gmt":"2022-09-15T08:16:59","slug":"docker%e7%9a%84%e4%b8%80%e4%ba%9b%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=818","title":{"rendered":"Docker\u7684\u4e00\u4e9b\u547d\u4ee4"},"content":{"rendered":"\n<ol><li>\u62c9\u53d6\u4e00\u4e2adocker\u955c\u50cf  docker pull  xxx<\/li><li>\u67e5\u770bdoucker\u7684\u955c\u50cf\u5217\u8868  docker images<\/li><li>\u7528\u955c\u50cf\u8fd0\u884c\u4e00\u4e2a\u5bb9\u5668  docker run -t -i  xxx \/bin\/bash<\/li><li>\u5220\u9664\u4e00\u4e2a\u955c\u50cf              docker rmi xxx<\/li><li>\u521b\u5efa\u4e00\u4e2a\u955c\u50cf a( \u66f4\u65b0(\u5df2\u5b58\u5728\u7684\u955c\u50cf): 1\u3001\u8fdb\u5165\u5bb9\u5668\u540e apt-get  update\u66f4\u65b0   2\u3001\u64cd\u4f5c\u5b8c\u6210\u540e exit  3\u3001docker commit -m=&#8221;has update&#8221; -a=&#8221;runoob&#8221;   \u5bb9\u5668ID   runoob\/ubuntu:v2)  b\uff08\u65b0\u5efa(\u6784\u5efa\u955c\u50cf)\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u00a0Dockerfile\u00a0\u6587\u4ef6\u3001\uff09<\/li><li>\u542f\u52a8|\u505c\u6b62\u4e00\u4e2a\u5bb9\u5668  docker  start|stop   \u5bb9\u5668\u7f16\u53f7<\/li><li>\u8fdb\u5165\u5bb9\u5668 docker exec -it \u5bb9\u5668\u7f16\u53f7  \/bin\/bash<\/li><li>\u5220\u9664\u5bb9\u5668 docker rm -f  \u5bb9\u5668\u7f16\u53f7 <\/li><li>\u5bb9\u5668\u8fd0\u884c\u60c5\u51b5 docker  ps  -a  <\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u62c9\u53d6\u4e00\u4e2adocker\u955c\u50cf docker pull &#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=818\">Continue reading<span class=\"screen-reader-text\">Docker\u7684\u4e00\u4e9b\u547d\u4ee4<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[133],"tags":[33],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/818"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=818"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":819,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/818\/revisions\/819"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}