{"id":3189,"date":"2019-06-25T13:23:25","date_gmt":"2019-06-25T05:23:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3189"},"modified":"2019-06-25T13:23:26","modified_gmt":"2019-06-25T05:23:26","slug":"docker","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/docker","title":{"rendered":"docker\u547d\u4ee4 – \u5e94\u7528\u5bb9\u5668\u5f15\u64ce"},"content":{"rendered":"\n
docker\u547d\u4ee4\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u6253\u5305\u4ed6\u4eec\u7684\u5e94\u7528\u4ee5\u53ca\u4f9d\u8d56\u5305\u5230\u4e00\u4e2a\u53ef\u79fb\u690d\u7684\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u53d1\u5e03\u5230\u4efb\u4f55\u6d41\u884c\u7684Linux\u673a\u5668\u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u865a\u62df\u5316\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>docker[\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u6740\u6389\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\uff1a<\/p>\n\n\n\n \u5220\u6389\u5df2\u7ecf\u505c\u6b62\u7684\u5bb9\u5668\uff1a<\/p>\n\n\n\n \u767b\u9646\u5230con03\u4e2d:<\/p>\n\n\n\n \u505c\u6b62con03:<\/p>\n\n\n\n \u5f00\u542fcon03\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" docker\u547d\u4ee4\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u6253\u5305\u4ed6\u4eec\u7684\u5e94\u7528\u4ee5\u53ca\u4f9d\u8d56\u5305\u5230\u4e00\u4e2a\u53ef\u79fb\u690d\u7684\u5bb9\u5668\u4e2d\uff0c\u7136\u540e\u53d1\u5e03\u5230\u4efb\u4f55\u6d41\u884c\u7684Linux\u673a\u5668\u4e0a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3189"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3189"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3189\/revisions"}],"predecessor-version":[{"id":3527,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3189\/revisions\/3527"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}ps<\/td> \u663e\u793a\u72b6\u6001\u4e3a\u8fd0\u884c\uff08Up\uff09\u7684\u5bb9\u5668 <\/td><\/tr> cp<\/td> \u4ece\u5bb9\u5668\u91cc\u5411\u5916\u62f7\u8d1d\u6587\u4ef6\u6216\u76ee\u5f55 <\/td><\/tr> kill <\/td> \u53d1\u9001\u4fe1\u53f7\u7ed9\u5bb9\u5668\uff0c\u9ed8\u8ba4SIGKILL <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]#docker kill $(docker ps -q) <\/pre>\n\n\n\n
[root@linuxcool ~]#docker rm `docker ps -a -q` <\/pre>\n\n\n\n
[root@linuxcool ~]#docker exec -it con03 \/bin\/bash <\/pre>\n\n\n\n
[root@linuxcool ~]#docker stop con03 <\/pre>\n\n\n\n
[root@linuxcool ~]#docker start con03 <\/pre>\n\n\n\n