{"id":821,"date":"2021-12-15T01:50:42","date_gmt":"2021-12-15T01:50:42","guid":{"rendered":"https:\/\/262235.xyz\/?p=821"},"modified":"2021-12-15T01:50:42","modified_gmt":"2021-12-15T01:50:42","slug":"821","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/12\/15\/821\/","title":{"rendered":"Docker \u5b66\u4e60: \u5efa\u7acb\u81ea\u5b9a\u4e49\u955c\u50cf(\u9ed1\u7bb1\u5b50)\uff0c\u5bfc\u51fa\u548c\u5bfc\u5165\u955c\u50cf\uff0c\u9650\u5236\u5bb9\u5668\u4f7f\u7528CPU\u5360\u6709\u7387"},"content":{"rendered":"<h2>Docker commit\u5efa\u7acb\u81ea\u5b9a\u4e49\u955c\u50cf(\u9ed1\u7bb1\u5b50)<\/h2>\n<pre><code># Docker commit\u6839\u636e\u5bb9\u5668\u7684\u66f4\u6539\u521b\u5efa\u65b0\u56fe\u50cf\ndocker ps -a\ndocker commit 792ce25d7e9b  myrmb\ndocker history myrmb:latest <\/code><\/pre>\n<h2>Docker\u4f7f\u7528gzip\u538b\u7f29\u5bfc\u51fa\/\u5bfc\u5165\u955c\u50cf<\/h2>\n<pre><code># \u5bfc\u51fa\u955c\u50cf\ndocker save myrmb:latest | gzip &gt; myrmb.tar.gz\n\n# \u5bfc\u5165\u955c\u50cf\ngunzip -c  myrmb.tar.gz | docker load<\/code><\/pre>\n<h2>\u4f7f\u7528\u81ea\u5b9a\u4e49\u955c\u50cf\u5efa\u7acb\u5bb9\u5668,\u9650\u5236\u5bb9\u5668\u4f7f\u7528CPU\u5360\u6709\u7387<\/h2>\n<pre><code>docker history myrmb:latest\ndocker run -d -it --cpus 1.8 --name  debian  myrmb  sh\ndocker exec -it debian bash<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Docker commit\u5efa\u7acb\u81ea\u5b9a\u4e49\u955c\u50cf(\u9ed1\u7bb1\u5b50) # Docker commit\u6839\u636e\u5bb9\u5668\u7684\u66f4\u6539\u521b\u5efa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15],"class_list":["post-821","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=821"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/821\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}