{"id":917,"date":"2024-01-13T09:42:48","date_gmt":"2024-01-13T01:42:48","guid":{"rendered":"http:\/\/22pig.com\/?p=917"},"modified":"2024-01-13T09:42:48","modified_gmt":"2024-01-13T01:42:48","slug":"docker-%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4-2","status":"publish","type":"post","link":"http:\/\/22pig.com\/?p=917","title":{"rendered":"docker \u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">docker \u5e38\u7528\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>attach    Attach to a running container        \t\t\t#\u5f53\u524dshe11\u4e0battach \u8fde\u63a5\u6307\u5b9a\u8fd0\u884c\u955c\u50cf\nbuild    Build an image from a Dockerfile        \t\t#\u901a\u8fc7Dockerfile\u5b9a\u5236\u955c\u50cf\ncommit    Create a new image from a container changes   #\u63d0\u4ea4\u5f53\u524d\u5bb9\u5668\u4e3a\u65b0\u7684\u955c\u50cf\ncp    Copy files\/folders from the containers filesystem to the host path   #\u4ece\u5bb9\u5668\u4e2d\u62f7\u8d1d\u6307\u5b9a\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u5230\u5bbf\u4e3b\u673a\u4e2d\ncreate    Create a new container        \t\t\t\t#\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bb9\u5668\uff0c\u540crun,\u4f46\u4e0d\u542f\u52a8\u5bb9\u5668\ndiff    Inspect changes on a container's filesystem     #\u67e5\u770bdocker \u5bb9\u5668\u53d8\u5316\nevents    Get rea1 time events from the server        \t#\u4ecedocker \u670d\u52a1\u83b7\u53d6\u5bb9\u5668\u5b9e\u65f6\u4e8b\u4ef6\nexec    Run a command in an existing container        \t#\u5728\u5df2\u5b58\u5728\u7684\u5bb9\u5668\u4e0a\u8fd0\u884c\u547d\u4ee4\nexport    Stream the contents of a container as a tar archive   #\u5bfc\u51fa\u5bb9\u5668\u7684\u5185\u5bb9\u6d41\u4f5c\u4e3a\u4e00\u4e2atar \u5f52\u6863\u6587\u4ef6&#91;\u5bf9\u5e94import ]\nhistory    show the history of an image        \t\t\t#\u5c55\u793a\u4e00\u4e2a\u955c\u50cf\u5f62\u6210\u5386\u53f2\nimages    List images        \t\t\t\t\t\t\t#\u5217\u51fa\u7cfb\u7edf\u5f53\u524d\u955c\u50cf\nimport    Create a new filesystem image from the contents of a tarba1l     #\u4ecetar\u5305 \u4e2d\u7684\u5185\u5bb9\u521b\u5efa-\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u7cfb\u7edf\u6620\u50cf&#91;\u5bf9\u5e94export]\ninfo    Display system-wide informati on        \t\t#\u663e\u793a\u7cfb\u7edf\u76f8\u5173\u4fe1\u606f\ninspect    Return 1ow-1evel information on a container  #\u67e5\u770b\u5bb9\u5668\u8be6\u7ec6\u4fe1\u606f\nkill    Ki11 a running container        \t\t\t\t# kill\u6307\u5b9adocker\u5bb9\u5668\nload    Load an image from a tar archive        \t\t#\u4ece\u4e00\u4e2atar\u5305\u4e2d\u52a0\u8f7d\u4e00\u4e2a\u955c\u50cf&#91;\u5bf9\u5e94save]\nlogin    Register or Login to the docker registry server   #\u6ce8\u518c\u6216\u8005\u767b\u9646\u4e00\u4e2adocker\u6e90\u670d\u52a1\u5668\nlogout    Log out from a Docker registry server        \t#\u4ece\u5f53\u524dDocker registry \u9000\u51fa\nlogs    Fetch the 1ogs of a container        \t\t\t#\u8f93\u51fa\u5f53\u524d\u5bb9\u5668\u65e5\u5fd7\u4fe1\u606f\nport    Lookup the public-facing port which is NAT-ed to PRIVATE_ PORT    #\u67e5\u770b\u6620\u5c04\u7aef\u53e3\u5bf9\u5e94\u7684\u5bb9\u5668\u5185\u90e8\u6e90\u7aef\u53e3\npause    Pause a11 processes within a container        \t#\u6682\u505c\u5bb9\u5668\nps    List containers        \t\t\t\t\t\t\t#\u5217\u51fa\u5bb9\u5668\u5217\u8868\npull    Pull an image or a repository from the docker registry server     # \u4ecedocker\u955c\u50cf\u6e90\u670d\u52a1\u5668\u62c9\u53d6\u6307\u5b9a\u955c\u50cf\u6216\u8005\u5e93\u955c\u50cf\npush    Push an image or a repository to the docker registry server        #\u63a8\u9001\u6307\u5b9a\u955c\u50cf\u6216\u8005\u5e93\u955c\u50cf\u81f3docker\u6e90\u670d\u52a1\u5668\nrestart    Restart a running container        \t\t\t#\u91cd\u542f\u8fd0\u884c\u7684\u5bb9\u5668\nrm    Remove one or more containers    \t\t\t\t\t#\u79fb\u9664\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u5bb9\u5668\nrmi    Remove one or more i mages        \t\t\t\t#\u79fb\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u955c\u50cf&#91;\u65e0\u5bb9\u5668\u4f7f\u7528\u8be5\u955c\u50cf\u624d\u53ef\u5220\u9664\uff0c\u5426\u5219\u9700\u5220\u9664\u76f8\u5173\u5bb9\u624d\u53ef\u7ee7\u7eed\u6216-f\u5f3a\u5236\u5220\u9664]\nrun    Run a command in a new container        \t\t\t#\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bb9\u5668\u5e76\u8fd0\u884c\u4e00\u4e2a\u547d\u4ee4\nsave    Save an image to a tar archive    \t\t\t\t#\u4fdd\u5b58\u4e00\u4e2a\u955c\u50cf\u4e3a\u4e00\u4e2atar\u5305&#91;\u5bf9\u5e941oad]\nsearch    Search for an image on the Docker Hub        \t#\u5728docker hub\u4e2d\u641c\u7d22\u955c\u50cf\nstart    Start a stopped containers        \t\t\t\t#\u542f\u52a8\u5bb9\u5668\nstop    Stop a running containers        \t\t\t\t#\u505c\u6b62\u5bb9\u5668\ntag    Tag an image into a repository    \t\t\t\t#\u7ed9\u6e90\u4e2d\u955c\u50cf\u6253\u6807\u7b7e\ntop    Lookup the running processes of a container   \t#\u67e5\u770b\u5bb9\u5668\u4e2d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\nunpause    Unpause a paused container        \t\t\t#\u53d6\u6d88\u6682\u505c\u5bb9\u5668\nversion    Show the docker vers ion informati on        #\u67e5\u770bdocker\u7248\u672c\u53f7\nwait     Block uyntil a container stops\uff0cthen print its exit code   #\u622a\u53d6\u5bb9\u5668\u505c\u6b62\u65f6\u7684\u9000\u51fa\u72b6\u6001\u503c\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>docker \u5e38\u7528\u547d\u4ee4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-917","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=917"}],"version-history":[{"count":1,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/917\/revisions"}],"predecessor-version":[{"id":918,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/917\/revisions\/918"}],"wp:attachment":[{"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=917"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}