CINXE.COM

Docker容器-西部数码知识库

<!DOCTYPE HTML> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <meta name="apple-mobile-web-app-title" content="西部数码知识库"> <meta http-equiv="Cache-Control" content="no-siteapp"> <title>Docker容器-西部数码知识库</title> <meta name='robots' content='max-image-preview:large' /> <link rel='dns-prefetch' href='//www.west.cn' /> <link rel='stylesheet' id='wp-block-library-css' href='https://www.west.cn/docs/wp-includes/css/dist/block-library/style.min.css?ver=6.1.1' type='text/css' media='all' /> <link rel='stylesheet' id='classic-theme-styles-css' href='https://www.west.cn/docs/wp-includes/css/classic-themes.min.css?ver=1' type='text/css' media='all' /> <style id='global-styles-inline-css' type='text/css'> body{--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--duotone--dark-grayscale: url('#wp-duotone-dark-grayscale');--wp--preset--duotone--grayscale: url('#wp-duotone-grayscale');--wp--preset--duotone--purple-yellow: url('#wp-duotone-purple-yellow');--wp--preset--duotone--blue-red: url('#wp-duotone-blue-red');--wp--preset--duotone--midnight: url('#wp-duotone-midnight');--wp--preset--duotone--magenta-yellow: url('#wp-duotone-magenta-yellow');--wp--preset--duotone--purple-green: url('#wp-duotone-purple-green');--wp--preset--duotone--blue-orange: url('#wp-duotone-blue-orange');--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;}:where(.is-layout-flex){gap: 0.5em;}body .is-layout-flow > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-flow > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-flow > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignleft{float: left;margin-inline-start: 0;margin-inline-end: 2em;}body .is-layout-constrained > .alignright{float: right;margin-inline-start: 2em;margin-inline-end: 0;}body .is-layout-constrained > .aligncenter{margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width: var(--wp--style--global--content-size);margin-left: auto !important;margin-right: auto !important;}body .is-layout-constrained > .alignwide{max-width: var(--wp--style--global--wide-size);}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} .wp-block-navigation a:where(:not(.wp-element-button)){color: inherit;} :where(.wp-block-columns.is-layout-flex){gap: 2em;} .wp-block-pullquote{font-size: 1.5em;line-height: 1.6;} </style> <link rel='stylesheet' id='style-css' href='https://www.west.cn/docs/wp-content/themes/dux/style.css?ver=8.1' type='text/css' media='all' /> <script type='text/javascript' src='https://www.west.cn/docs/wp-content/themes/dux/assets/js/libs/jquery.min.js?ver=8.1' id='jquery-js'></script> <link rel="https://api.w.org/" href="https://www.west.cn/docs/wp-json/" /><link rel="alternate" type="application/json" href="https://www.west.cn/docs/wp-json/wp/v2/tags/14109" /><meta name="keywords" content="Docker容器"> <meta name="description" content="Docker容器相关的知识介绍,想了解Docker容器更多百科知识,请上西部数码知识库"> <style>.container{max-width:1200px}:root{--tb--main: #000000}.iframewidth{width:640px; height:498px;}@media screen and (max-width: 380px) {.iframewidth{width:300px; height:298px;}} @media screen and (min-width: 380px) and (max-width: 438px) {.iframewidth{width:400px; height:310px;} @media screen and (min-width: 439px) {.iframewidth{width:640px; height:498px;}}</style><link rel="shortcut icon" href="https://www.west.cn/docs/favicon.ico"> </head> <body class="archive tag tag-docker tag-14109 home m-excerpt-cat m-excerpt-desc site-layout-2 text-justify-on m-sidebar elementor-default"> <header class="header"> <div class="container"> <div class="logo"><a href="https://www.west.cn/docs" title="西部数码知识库-云服务器知识-虚拟主机知识-域名知识-IDC知识库"><img src="https://www.west.cn/docs/wp-content/uploads/2019/07/logo2.png" alt="西部数码知识库-云服务器知识-虚拟主机知识-域名知识-IDC知识库"><img class="-dark" src="https://www.west.cn/docs/wp-content/uploads/2019/07/logo2.png" alt="西部数码知识库-云服务器知识-虚拟主机知识-域名知识-IDC知识库">西部数码知识库</a></div> <ul class="site-nav site-navbar"> <li><a href="https://www.west.cn/docs/">首页</a></li> <li><a href="https://www.west.cn/docs/domain">域名知识</a></li> <li><a href="https://www.west.cn/docs/host">虚拟主机知识</a></li> <li><a href="https://www.west.cn/docs/cloud">云服务器知识</a></li> <li><a href="https://www.west.cn/docs/mail">企业邮箱知识</a></li> <li><a href="https://www.west.cn/docs/faqs">常见问题</a></li> <li><a href="https://www.west.cn/docs/website">网站建设</a></li> <li><a href="https://www.west.cn/docs/network">网络知识</a></li> <li><a href="https://www.west.cn/docs/trademark">商标知识</a></li> </ul> <div class="topbar"> <ul class="site-nav topmenu"> <li><a target="_blank" rel="noopener" href="https://www.west.cn/">西部数码</a></li> <li class="menusns menu-item-has-children"> <a href="javascript:;">关注我们</a> <ul class="sub-menu"> <li><a class="sns-wechat" href="javascript:;" title="西部数码" data-src="https://www.west.cn/docs/wp-content/uploads/2021/09/qrcode_for_gh_3be81c840e4c_258.jpg">西部数码</a></li> </ul> </li> </ul> </div> </div> </header> <i class="tbfa m-icon-nav">&#xe612;</i> <div class="site-search"> <div class="container"> <form method="get" class="site-search-form" action="https://www.west.cn/docs/"> <input class="search-input" name="s" type="text" placeholder="输入关键字" value="" required="required"> <button class="search-btn" type="submit"><i class="tbfa">&#xe611;</i></button> </form> </div> </div> <section class="container"> <div class="content-wrap"> <div class="content"> <div class="catleader"><h1>标签:Docker容器</h1></div><article class="excerpt excerpt-1"><a target="_blank" class="focus" href="https://www.west.cn/docs/67871.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/03/100.png" alt="docker容器时间如何同步-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/67871.html" title="docker容器时间如何同步-西部数码知识库">docker容器时间如何同步</a></h2></header><p class="note">docker容器时间如何同步?有时候Docker容器创建好之后,可能会发现容器时间跟宿主机时间不一致,这就需要同步它们的时间。比如,宿主机采用了CST时区;容器采用了UTC时区</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-03-05</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(7255)</span><a href="javascript:;" etap="like" class="post-like" data-pid="67871"><i class="tbfa">&#xe64c;</i>赞(<span>12</span>)</a></div></article><article class="excerpt excerpt-2"><a target="_blank" class="focus" href="https://www.west.cn/docs/66478.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/2-13-220x150.jpg" alt="docker容器服务部署失败后怎么找原因-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/66478.html" title="docker容器服务部署失败后怎么找原因-西部数码知识库">docker容器服务部署失败后怎么找原因</a></h2></header><p class="note">docker容器服务部署失败后怎么找原因?应用、服务的事件列表记录了对应用和服务操作的关键操作日志信息,可以快速定位应用、服务部署失败的原因。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-19</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(4217)</span><a href="javascript:;" etap="like" class="post-like" data-pid="66478"><i class="tbfa">&#xe64c;</i>赞(<span>13</span>)</a></div></article><article class="excerpt excerpt-3"><a target="_blank" class="focus" href="https://www.west.cn/docs/66474.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/docker容器-220x150.jpg" alt="如何查看docker容器内的进程-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/66474.html" title="如何查看docker容器内的进程-西部数码知识库">如何查看docker容器内的进程</a></h2></header><p class="note">如何查看docker容器内的进程?查看docker容器进程信息,在命令行中输入 docker top | 命令,可列出指定容器中运行的进程信息。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-19</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(19481)</span><a href="javascript:;" etap="like" class="post-like" data-pid="66474"><i class="tbfa">&#xe64c;</i>赞(<span>11</span>)</a></div></article><article class="excerpt excerpt-4"><a target="_blank" class="focus" href="https://www.west.cn/docs/66467.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/07/docker集群-220x150.jpg" alt="docker 容器启动报错 如何看-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/66467.html" title="docker 容器启动报错 如何看-西部数码知识库">docker 容器启动报错 如何看</a></h2></header><p class="note">docker 容器启动报错 如何看?我们在Docker容器的使用过程中,难免会遇到一些问题。可以把常见的问题分为如下几类。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-19</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(4499)</span><a href="javascript:;" etap="like" class="post-like" data-pid="66467"><i class="tbfa">&#xe64c;</i>赞(<span>11</span>)</a></div></article><article class="excerpt excerpt-5"><a target="_blank" class="focus" href="https://www.west.cn/docs/66457.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/3-12-220x150.jpg" alt="docker 容器服务停止如何排查错误-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/66457.html" title="docker 容器服务停止如何排查错误-西部数码知识库">docker 容器服务停止如何排查错误</a></h2></header><p class="note">docker 容器服务停止如何排查错误?在容器使用的过程中,如果出现服务无法使用的情况,需要排查容器中的错误,并修复运行。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-19</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(4547)</span><a href="javascript:;" etap="like" class="post-like" data-pid="66457"><i class="tbfa">&#xe64c;</i>赞(<span>10</span>)</a></div></article><article class="excerpt excerpt-6"><a target="_blank" class="focus" href="https://www.west.cn/docs/66198.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2020/01/docker拓扑-220x150.jpg" alt="docker 容器关系拓扑-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/66198.html" title="docker 容器关系拓扑-西部数码知识库">docker 容器关系拓扑</a></h2></header><p class="note">docker 容器关系拓扑是什么?要研究Docker集群,首先要熟悉Docker容器中的网络拓扑。Docker通过网络驱动(network drivers)来支持容器的网络功能,Docker提供了两种网络驱动——bridge和overlay 驱动,当然也可以自己创建网络驱动。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-10</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(3815)</span><a href="javascript:;" etap="like" class="post-like" data-pid="66198"><i class="tbfa">&#xe64c;</i>赞(<span>10</span>)</a></div></article><article class="excerpt excerpt-7"><a target="_blank" class="focus" href="https://www.west.cn/docs/65973.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/3-12-220x150.jpg" alt="docker 如何重启已关闭的容器-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/65973.html" title="docker 如何重启已关闭的容器-西部数码知识库">docker 如何重启已关闭的容器</a></h2></header><p class="note">docker 如何重启已关闭的容器?docker restart 容器ID或容器名 :不管容器是否启动,直接重启容器</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2020-01-03</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(5781)</span><a href="javascript:;" etap="like" class="post-like" data-pid="65973"><i class="tbfa">&#xe64c;</i>赞(<span>11</span>)</a></div></article><article class="excerpt excerpt-8"><a target="_blank" class="focus" href="https://www.west.cn/docs/65797.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/3-12-220x150.jpg" alt="docker 自定义容器名-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/65797.html" title="docker 自定义容器名-西部数码知识库">docker 自定义容器名</a></h2></header><p class="note">docker 自定义容器名怎么做?在创建Docker容器时,系统会自动为每个容器分配一个通用唯一标识符( UUID )编号,以避免命名冲突。我们也可以自己来命名容器。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2019-12-27</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(4210)</span><a href="javascript:;" etap="like" class="post-like" data-pid="65797"><i class="tbfa">&#xe64c;</i>赞(<span>13</span>)</a></div></article><article class="excerpt excerpt-9"><a target="_blank" class="focus" href="https://www.west.cn/docs/65638.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/5-5-220x150.jpg" alt="docker查看容器日志命令-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/65638.html" title="docker查看容器日志命令-西部数码知识库">docker查看容器日志命令</a></h2></header><p class="note">docker查看容器日志命令是什么?docker容器使用 docker logs container-name/container-id 命令,可以查看容器日志信息,指定容器名或者 容器 id 即可。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2019-12-23</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(3596)</span><a href="javascript:;" etap="like" class="post-like" data-pid="65638"><i class="tbfa">&#xe64c;</i>赞(<span>11</span>)</a></div></article><article class="excerpt excerpt-10"><a target="_blank" class="focus" href="https://www.west.cn/docs/65634.html"><img data-src="https://www.west.cn/docs/wp-content/uploads/2019/06/1-19-220x150.jpg" alt="docker容器内如何装软件-西部数码知识库" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/thumbnail.png" class="thumb"></a><header><h2><a target="_blank" href="https://www.west.cn/docs/65634.html" title="docker容器内如何装软件-西部数码知识库">docker容器内如何装软件</a></h2></header><p class="note">docker容器内如何装软件?docker容器中经常需要安装一些常用的软件,下面我们来介绍几个软件的安装命令。</p><div class="meta"><span class="author"><img class="avatar" data-src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png?0801f715875bded6b5ada22621614a82?s=96&d=https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" src="https://www.west.cn/docs/wp-content/themes/dux/assets/img/avatar-default.png" alt="editor">editor</span><time>2019-12-23</time><a class="cat" href="https://www.west.cn/docs/cloud"><i class="tbfa">&#xe60e;</i>云服务器知识</a> <span class="pv">阅读(3670)</span><a href="javascript:;" etap="like" class="post-like" data-pid="65634"><i class="tbfa">&#xe64c;</i>赞(<span>11</span>)</a></div></article><div class="pagination"><ul><span class="pages">Page: 1 of 23 </span> <li class="prev-page"></li><li class="active"><span>1</span></li><li><a href='https://www.west.cn/docs/tags/docker%e5%ae%b9%e5%99%a8/page/2'>2</a></li><li><a href='https://www.west.cn/docs/tags/docker%e5%ae%b9%e5%99%a8/page/3'>3</a></li><li><a href='https://www.west.cn/docs/tags/docker%e5%ae%b9%e5%99%a8/page/4'>4</a></li><li><span> ... </span></li><li class="next-page"><a href="https://www.west.cn/docs/tags/docker%e5%ae%b9%e5%99%a8/page/2" >下一页</a></li><li><span>共 23 页</span></li></ul></div> </div> </div> <div class="sidebar"> <div class="widget widget_ui_slider"><div class="swiper-container"> <div class="swiper-wrapper"><div class="swiper-slide"><a target="_blank" href="https://www.363.hk/?link=docs_youtu1"><img src="https://www.west.cn/docs/wp-content/uploads/2024/09/336x280一口价-1.jpg"></a></div><div class="swiper-slide"><a target="_blank" href="https://www.west.cn/cloudhost/?link=docs_youtu2"><img src="https://www.west.cn/docs/wp-content/uploads/2024/02/360x300.jpg"></a></div></div><div class="swiper-button-next swiper-button-white"><i class="tbfa">&#xe603;</i></div><div class="swiper-button-prev swiper-button-white"><i class="tbfa">&#xe610;</i></div></div></div><div class="widget_text widget widget_custom_html"><h3>热销产品</h3><div class="textwidget custom-html-widget"><p> <a class="tick_reference_tag" href="https://www.west.cn/cloudhost/" target="_blank" rel="noopener">弹性云服务器</a>  <a class="tick_reference_tag" href="https://www.west.cn/cloudhost/" target="_blank" rel="noopener">云服务器租用</a>  <a class="tick_reference_tag" href="https://www.west.cn/cloudhost/" target="_blank" rel="noopener">云主机</a> </p> <p> <a class="tick_reference_tag" href="https://www.west.cn/cloudhost/gaofang.asp" target="_blank" rel="noopener">高防云服务器</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/server/" target="_blank" rel="noopener">服务器租用</a>   <a class="tick_reference_tag" href="https://www.west.cn/safety/" target="_blank" rel="noopener">云安全</a> </p> <p> <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/dxhosting.asp" target="_blank" rel="noopener">独享虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/morelinevhost.asp" target="_blank" rel="noopener">多线虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/twolinevhost.asp" target="_blank" rel="noopener">双线虚拟主机</a> </p> <p> <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/twhost.asp" target="_blank" rel="noopener">香港虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/usa.asp" target="_blank" rel="noopener">美国虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/dishosting/" target="_blank" rel="noopener">集群主机</a> </p> <p> <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/java.asp" target="_blank" rel="noopener">java虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/linux_host.asp" target="_blank" rel="noopener">Linux虚拟主机</a>  <a class="tick_reference_tag" href="https://www.west.cn/services/webhosting/asp_net.asp" target="_blank" rel="noopener">ASP.NET虚拟主机</a> </p></div></div><div class="widget widget_ui_tags"><h3>热门标签</h3><div class="items"><a href="https://www.west.cn/docs/tags/%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9f%a5%e8%af%86">云服务器知识<span>(132300)</span></a><a href="https://www.west.cn/docs/tags/%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba-%e6%95%b0%e6%8d%ae%e5%ba%93%e9%97%ae%e9%a2%98">虚拟主机/数据库问题<span>(58211)</span></a><a href="https://www.west.cn/docs/tags/%e5%a4%87%e6%a1%88%e5%b9%b3%e5%8f%b0">备案平台<span>(48476)</span></a><a href="https://www.west.cn/docs/tags/%e5%85%b6%e4%bb%96%e9%97%ae%e9%a2%98">其他问题<span>(41919)</span></a><a href="https://www.west.cn/docs/tags/%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%97%ae%e9%a2%98">云服务器问题<span>(38363)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e5%8f%8a%e8%b4%a6%e6%88%b7%e9%97%ae%e9%a2%98">域名及账户问题<span>(29134)</span></a><a href="https://www.west.cn/docs/tags/%e4%bc%81%e4%b8%9a%e9%82%ae%e5%b1%80">企业邮局<span>(4088)</span></a><a href="https://www.west.cn/docs/tags/%e5%b8%82%e5%9c%ba%e5%92%a8%e8%af%a2">市场咨询<span>(3866)</span></a><a href="https://www.west.cn/docs/tags/%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8">云服务器<span>(1529)</span></a><a href="https://www.west.cn/docs/tags/%e4%ba%91%e5%bb%ba%e7%ab%99-%e4%ba%91%e7%ab%99%e7%be%a4-%e5%b0%8f%e7%a8%8b%e5%ba%8f">云建站/云站群/小程序<span>(1361)</span></a><a href="https://www.west.cn/docs/tags/%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba">虚拟主机<span>(1028)</span></a><a href="https://www.west.cn/docs/tags/%e7%bd%91%e7%bb%9c%e7%9f%a5%e8%af%86">网络知识<span>(554)</span></a><a href="https://www.west.cn/docs/tags/%e4%bc%81%e4%b8%9a%e9%82%ae%e7%ae%b1">企业邮箱<span>(496)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e6%b3%a8%e5%86%8c">域名注册<span>(346)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e5%a4%87%e6%a1%88">域名备案<span>(339)</span></a><a href="https://www.west.cn/docs/tags/%e5%95%86%e6%a0%87%e6%b3%a8%e5%86%8c">商标注册<span>(315)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d">域名<span>(291)</span></a><a href="https://www.west.cn/docs/tags/%e4%ba%91%e4%b8%bb%e6%9c%ba">云主机<span>(276)</span></a><a href="https://www.west.cn/docs/tags/%e7%bd%91%e7%ab%99%e5%a4%87%e6%a1%88">网站备案<span>(245)</span></a><a href="https://www.west.cn/docs/tags/docker%e5%ae%b9%e5%99%a8">Docker容器<span>(221)</span></a><a href="https://www.west.cn/docs/tags/ssl%e8%af%81%e4%b9%a6">ssl证书<span>(219)</span></a><a href="https://www.west.cn/docs/tags/%e7%bd%91%e7%ab%99%e7%a9%ba%e9%97%b4">网站空间<span>(216)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e6%8a%a2%e6%b3%a8">域名抢注<span>(201)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e5%a4%9a%e5%b0%91%e9%92%b1">域名多少钱<span>(194)</span></a><a href="https://www.west.cn/docs/tags/%e6%9c%8d%e5%8a%a1%e5%99%a8">服务器<span>(183)</span></a><a href="https://www.west.cn/docs/tags/%e6%b3%a8%e5%86%8c%e5%9f%9f%e5%90%8d">注册域名<span>(180)</span></a><a href="https://www.west.cn/docs/tags/%e6%b3%a8%e5%86%8c%e5%95%86%e6%a0%87">注册商标<span>(178)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e4%ba%a4%e6%98%93">域名交易<span>(166)</span></a><a href="https://www.west.cn/docs/tags/%e5%9f%9f%e5%90%8d%e8%b4%ad%e4%b9%b0">域名购买<span>(164)</span></a><a href="https://www.west.cn/docs/tags/%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%a7%9f%e7%94%a8">服务器租用<span>(159)</span></a><a></a><a></a><a href="https://www.west.cn/docs/tags">更多标签...</a></div></div></div></section> <footer class="footer"> <div class="container"> <p>&copy; 2010-2024 &nbsp; <a href="https://www.west.cn/docs">西部数码知识库</a> &nbsp; <a target="_blank" href="http://www.west.cn/">西部数码</a>旗下IDC知识库,为您提供域名注册,域名交易,虚拟主机,云服务器,云计算,网站建设等领域专业的知识介绍! <br /><br />川B1.B2-20080058号<br><br>wordpress template system recommended <a target="_blank" href="http://themebetter.com/?link=west.cn" rel="nofollow">themebetter</a></p> 请求次数:47 次,加载用时:0.198 秒,内存占用:8.45 MB <div style=" display:none;"> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?d0e33fc3fbfc66c95d9fdcc4c93a8288"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </div> </div> </footer> <div class="sign"> <div class="sign-mask"></div> <div class="sign-tips"></div> <form class="-in"> <h4><small class="signup-loader">切换注册</small>登录</h4> <div class="-item"> <label for="inputEmail">用户名或邮箱</label> <input type="text" name="username" class="ipt" id="inputEmail" placeholder="用户名或邮箱"> </div> <div class="-item"> <a href="https://www.west.cn/docs/navs">找回密码</a> <label for="inputPassword">密码</label> <input type="password" name="password" class="ipt" id="inputPassword" placeholder="登录密码"> </div> <div class="sign-submit"> <input type="button" class="btn btn-primary btn-block signinsubmit-loader" name="submit" value="登录" id="site_login"> <input type="hidden" name="action" value="signin"> <label><input type="checkbox" checked="checked" name="remember" value="forever">记住我</label> </div> </form> <form class="-up"> <h4><small class="signin-loader">切换登录</small>注册</h4> <div class="-item"> <label for="inputName">昵称</label> <input type="text" name="name" class="ipt" id="inputName" placeholder="设置昵称"> </div> <div class="-item"> <label for="inputEmail2">邮箱</label> <input type="email" name="email" class="ipt" id="inputEmail2" placeholder="邮箱"> </div> <div class="sign-submit"> <input type="button" class="btn btn-primary btn-block signupsubmit-loader" name="submit" value="快速注册" id="site_register"> <input type="hidden" name="action" value="signup"> </div> </form> </div><script> window.TBUI = {"www":"https:\/\/www.west.cn\/docs","uri":"https:\/\/www.west.cn\/docs\/wp-content\/themes\/dux","ajaxurl":"https:\/\/www.west.cn\/docs\/wp-admin\/admin-ajax.php","ver":"8.1","roll":"2 3","ajaxpager":"0","fullimage":"1","captcha":0,"captcha_appid":"","captcha_comment":1}</script> <script type='text/javascript' src='https://www.west.cn/docs/wp-content/themes/dux/assets/js/loader.js?ver=8.1' id='loader-js'></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10