zoukankan      html  css  js  c++  java
  • 打赏 jQuery火箭图标返回顶部代码</h1> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <div style=" height: 200px; overflow:hidden;"> <span class="pre-scrollable"><div id="cnblogs_post_body" class="blogpost-body"> <h2 id="portainer"><span id="portainer介绍">Portainer介绍</span></h2> <blockquote> <p><span>Portainer是Docker的图形化管理工具,提供状态显示面板、应用模板快速部署、容器镜像网络数据卷的基本操作(包括上传下载镜像,创建容器等操作)、事件日志显示、容器控制台操作、Swarm集群和服务等集中管理和操作、登录用户管理和控制等功能。功能十分全面,基本能满足中小型单位对容器管理的全部需求。</span></p> </blockquote> <h2 id="portainer-1"><span id="下载portainer镜像">下载Portainer镜像</span></h2> <div class="cnblogs_code"> <pre>[root@m129 /]# docker pull docker.io/portainer/<span style="color: #000000;">portainer Using </span><span style="color: #0000ff;">default</span><span style="color: #000000;"> tag: latest latest: Pulling </span><span style="color: #0000ff;">from</span> portainer/<span style="color: #000000;">portainer d1e017099d17: Pull complete f4f2fd75fb8a: Pull complete Digest: sha256:026381c60682b82a863f0c3737a9b4a414beaddd4cf050477a7749ff5ac61189 Status: Downloaded newer image </span><span style="color: #0000ff;">for</span> portainer/<span style="color: #000000;">portainer:latest docker.io</span>/portainer/portainer:latest</pre> </div> <h2><span id="单机版运行环境">单机版运行环境</span></h2> <blockquote> <p><span>如果仅有一个docker宿主机,则可使用单机版运行,Portainer单机版运行十分简单,只需要一条语句即可启动容器,来管理该机器上的docker镜像、容器等数据。</span></p> </blockquote> <div class="cnblogs_code"> <pre>[root@m129 /]# docker run -d -p <span style="color: #800080;">9000</span>:<span style="color: #800080;">9000</span><span style="color: #000000;"> </span>> --restart=<span style="color: #000000;">always </span>> -v /<span style="color: #0000ff;">var</span>/run/docker.sock:/<span style="color: #0000ff;">var</span>/run/<span style="color: #000000;">docker.sock </span>> --name prtainer-<span style="color: #000000;">test </span>> docker.io/portainer/<span style="color: #000000;">portainer 059ae15871942246c3994045e16196eb54f9de618cda722f09922cc69923f800 [root@m129 </span>/]#</pre> </div> <p>查看服务是否正常:</p> <div class="cnblogs_code"> <pre>[root@m129 /]# netstat -anpt | grep <span style="color: #800080;">9000</span><span style="color: #000000;"> tcp6 </span><span style="color: #800080;">0</span> <span style="color: #800080;">0</span> :::<span style="color: #800080;">9000</span> :::* LISTEN <span style="color: #800080;">20239</span>/docker-<span style="color: #000000;">proxy [root@m129 </span>/<span style="color: #000000;">]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 059ae1587194 portainer</span>/portainer <span style="color: #800000;">"</span><span style="color: #800000;">/portainer</span><span style="color: #800000;">"</span> About a minute ago Up About a minute <span style="color: #800080;">0.0</span>.<span style="color: #800080;">0.0</span>:<span style="color: #800080;">9000</span>-><span style="color: #800080;">9000</span>/tcp prtainer-<span style="color: #000000;">test [root@m129 </span>/]#</pre> </div> <p>输入ip加端口访问,密码自己输入的,就可以完成创建。</p> <p><img src="https://img2018.cnblogs.com/i-beta/1430251/202002/1430251-20200220191611994-1458313192.png" alt="" width="1079" height="548"></p> <p> 单机版这里选择local即可,选择完毕,点击Connect即可连接到本地docker:</p> <p><img src="https://img2018.cnblogs.com/i-beta/1430251/202002/1430251-20200220191811280-635149489.png" alt="" width="1078" height="495"></p> <p>注意:该页面上有提示需要挂载本地 /var/run/docker.socker与容器内的/var/run/docker.socker连接。因此,在启动时必须指定该挂载文件。</p> <p>首页:</p> <p><img src="https://img2018.cnblogs.com/i-beta/1430251/202002/1430251-20200220191951276-1830899248.png" alt="" width="1079" height="550"></p> <p> 容器列表:</p> <p><img src="https://img2018.cnblogs.com/i-beta/1430251/202002/1430251-20200220192141891-920114653.png" alt="" width="1076" height="528"></p> </div> </span> </div> <div style="text-align: center;"> <a href="https://www.cnblogs.com/liang-io/p/12337047.html" target="_blank" style="font-size: 16px;background-color: rgb(24, 144, 255); color: white;padding: 8px;padding-left: 30px;padding-right: 30px;border-radius: 2rem;">查看全文</a> </div> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <b>相关阅读:</b><br> <nobr> <a href="yzy521-p-14132044.html" target="_blank">vue第十单元(动态组件 keep-alive(钩子函数) 递归组件(name) 组件命名约定)</a> <br/><a href="yzy521-p-14132031.html" target="_blank">vue第九单元(非父子通信 events 单向数据流)</a> <br/><a href="yzy521-p-14132018.html" target="_blank">vue第八单元(组件通信 子父,父子组件通信 自定义事件 事件修饰符 v-model props验证 )</a> <br/><a href="yzy521-p-14132014.html" target="_blank">vue第七单元(vue的单文件组件形式-单文件组件的加载原理-vue-cli构建的开发环境以及生命周期)</a> <br/><a href="yzy521-p-14132003.html" target="_blank">vue第六单元(vue的实例和组件-vue实例的相关属性和方法-解释vue的原理-创建vue的组件)</a> <br/><a href="yzy521-p-14131974.html" target="_blank">vue第四单元(初识vue-在页面中直接引入vue框架-学习使用vue语法-vue的指令-介绍data用法-methods用法)</a> <br/><a href="yzy521-p-14131968.html" target="_blank">vue第三单元(webpack的应用-能根据具体的需求构建对应的开发环境)</a> <br/><a href="yzy521-p-14131965.html" target="_blank">vue第二单元(webpack的配置-学习webpack的常用配置)</a> <br/><a href="yzy521-p-14131958.html" target="_blank">vue第一单元(初识webpack-webpack的功能-webpack的初步使用)</a> <br/><a href="lvdong18847870057-p-12535088.html" target="_blank">◆◆0如何debug后台Job程序(JDBG)</a> <br/> </nobr> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="list-group-item from-a mb-2" style="margin:15px;"> 原文地址:https://www.cnblogs.com/liang-io/p/12337047.html </li> </ul> </div> <!-- 右侧开始 --> <div class="right-kd" style="margin: auto;margin: 0px;float: left;"> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin: 0px;"> <li class="ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 最新文章 </li> <li class="ul-li" style="padding-left:15px;padding-right:15px;"> <nobr> <a href="xieyulin-p-7060513.html" target="_blank">Objective-C Associated Objects 的实现原理</a> <br/><a href="xieyulin-p-7060504.html" target="_blank">iOS 本地时间 / UTC时间 / 时间戳等操作 / 获取当前年月日</a> <br/><a href="xieyulin-p-7060508.html" target="_blank">多线程:GCD</a> <br/><a href="xieyulin-p-7060495.html" target="_blank">dSYM 文件分析工具</a> <br/><a href="xieyulin-p-7060309.html" target="_blank">Description &&debugDescription && runtime(debug模式下调试model)</a> <br/><a href="xieyulin-p-7060193.html" target="_blank">Xcode 工程文件“.xcodeproj”文件夹解析</a> <br/><a href="xieyulin-p-7060183.html" target="_blank">基于XMPP的即时通信系统的建立</a> <br/><a href="xieyulin-p-7060188.html" target="_blank">XMPPManager 解析</a> <br/><a href="xieyulin-p-7060175.html" target="_blank">iOS开发debug跟release版本NSLog屏蔽方法</a> <br/><a href="xieyulin-p-7060178.html" target="_blank">XMPPFramework核心类介绍</a> <br/> </nobr> </li> </ul> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin-top: 10px;"> <li class="list-group-item ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 热门文章 </li> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <nobr> <a href="tekikesyo-p-10178645.html" target="_blank">测试常量池</a> <br/><a href="tekikesyo-p-10178625.html" target="_blank">Hotspot Java虚拟机的类加载器</a> <br/><a href="tekikesyo-p-10160723.html" target="_blank">线程池相关</a> <br/><a href="tekikesyo-p-10139008.html" target="_blank">Mysql Router 的集群</a> <br/><a href="tekikesyo-p-10119723.html" target="_blank">SSH本地端口转发的理解</a> <br/><a href="tekikesyo-p-10118985.html" target="_blank">收集一些复杂有用的正则表达式</a> <br/><a href="tekikesyo-p-10071088.html" target="_blank">curl 命令 从文件读取参数</a> <br/><a href="tekikesyo-p-10057848.html" target="_blank">SWT 几个sample网站</a> <br/><a href="tekikesyo-p-10036358.html" target="_blank">二叉树遍历例子</a> <br/><a href="tekikesyo-p-10036352.html" target="_blank">圈复杂度计算实例</a> <br/> </nobr> </li> </ul> </div> </div> </div> <div style="clear: both;"></div> <!-- 栅栏结束 --> <div class="kd" style="margin: auto;"> <div style="font-size:0.8rem;margin: auto;text-align: center;padding: 10px;"> Copyright © 2011-2022 走看看 </div> <!-- 引入底部 --> <!-- 百度自动推送js --> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- 百度自动推送js --> </div> </div> <script src="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js"></script> <script src="https://www.cnblogs.com/js/blog-common.min.js"></script> <script src="http://common.cnblogs.com/script/encoder.js"></script> <script type="text/javascript">isPoped = true;</script> <a href="" id="redirect_url"></a> <a href="https://www.cnblogs.com/liang-io/p/12337047.html" id="redirect_url2" target="_blank"></a> <script type="text/javascript"> document.onclick = function() { if (!isPoped) { document.getElementById("redirect_url").click(); document.getElementById("redirect_url2").click(); isPoped = true; } } </script> </body> </html>