(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{311:function(s,a,t){"use strict";t.r(a);var r=t(15),e=Object(r.a)({},(function(){var s=this,a=s._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h2",{attrs:{id:"列出本地镜像"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#列出本地镜像"}},[s._v("#")]),s._v(" 列出本地镜像")]),s._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" images\n")])])]),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[s._v("#")]),s._v(" Options")]),s._v(" "),a("ul",[a("li",[s._v("a：列出所有镜像")])]),s._v(" "),a("h2",{attrs:{id:"删除镜像"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#删除镜像"}},[s._v("#")]),s._v(" 删除镜像")]),s._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" rmi "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("镜像ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v("\n")])])]),a("h2",{attrs:{id:"列出容器"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#列出容器"}},[s._v("#")]),s._v(" 列出容器")]),s._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("ps")]),s._v("\n")])])]),a("h3",{attrs:{id:"options-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options-2"}},[s._v("#")]),s._v(" Options")]),s._v(" "),a("ul",[a("li",[s._v("a：列出所有容器，包括未运行")])]),s._v(" "),a("h2",{attrs:{id:"启动-停止-重启-删除容器"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#启动-停止-重启-删除容器"}},[s._v("#")]),s._v(" 启动 && 停止 && 重启 && 删除容器")]),s._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" start "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("镜像ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v("    // 启动容器\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" stop "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("镜像ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v("     // 停止容器\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" restart "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("镜像ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v("  // 重启容器\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("rm")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("容器ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v("       // 删除容器\n")])])]),a("h2",{attrs:{id:"进入-退出容器-bash"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#进入-退出容器-bash"}},[s._v("#")]),s._v(" 进入 && 退出容器 Bash")]),s._v(" "),a("div",{staticClass:"language-shell extra-class"},[a("pre",{pre:!0,attrs:{class:"language-shell"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("docker")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("exec")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[s._v("-i")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token parameter variable"}},[s._v("-t")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("<")]),s._v("容器ID"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v(" /bin/bash    // 进入容器 Bash\n"),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("exit")]),s._v("                                   // 退出容器 Bash\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]);