id: 3787e4c5d5b948eb919d4119710d7e11
parent_id: 
item_type: 1
item_id: 17ce4d5ee64843f28b1e492d201c86f5
item_updated_time: 1764345637601
title_diff: "[{\"diffs\":[[1,\"docker手册\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":8}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>docker手册</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"paragraphSpace\\\":\\\"recommend\\\",\\\"lineSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.superNote\\\" content=\\\"{\\\"aiMode\\\":false}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"44543\\\"></a>\\\r\\\n<h1>docker手册</h1>\\\r\\\n\\\r\\\n<div><span><div><br/></div><p><br/></p><div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzIzMTc2MzU0MA==&amp;mid=2247484005&amp;idx=1&amp;sn=e591e3931f506c2260e4e83bb818f33c&amp;chksm=e9a708455dc9e5a21dee14d2445cf01a9587f714c5e8c35f1dc675a2552480c3a40a09ede50f&amp;mpshare=1&amp;scene=1&amp;srcid=0615up590J5fQA23I6jy0xCK&amp;sharer_shareinfo=2461665a84b5aae9a8b00f8d020ae795&amp;sharer_shareinfo_first=2461665a84b5aae9a8b00f8d020ae795#rd\\\" rev=\\\"en_rl_none\\\">https://mp.weixin.qq.com/s?__biz=MzIzMTc2MzU0MA==&amp;mid=224748...</a></div></div><p><br/></p><div><br/></div><h1 style=\\\"other-props:eyJibG9ja0lkIjoieU9tWVRDSzBVOXkifQ==;\\\"> docker手册</h1><div>原创qbxing qbxing </div><p style=\\\"text-align:start;background-color:rgb(255, 255, 255);color:rgb(10, 10, 10);\\\"><span style=\\\"font-size: 0;\\\"><span style=\\\"font-family: system-ui,PingFang SC,Helvetica Neue,Microsoft Yahei,sans-serif;\\\"><span style=\\\"color: rgb(10,10,10);\\\"><span style=\\\"font-weight: 400;\\\"> </span></span></span></span></p><h1 style=\\\"text-align:center;color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiSGVFRlJtazVlQmQifQ==;\\\"><span style=\\\"font-size: 16.8px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">docker手册</span></span></span></span></h1><h3 style=\\\"color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiQThrM1J5SjE0bHMifQ==;\\\"><span style=\\\"font-size: 15.4px;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">安装</span></span></span></h3><div><br/></div><div style=\\\"--en-codeblock:true;--en-blockId:zI88RiyO-Kf;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"font-size: 12.6px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(119, 119, 119);\\\"># 移除旧版本docker</span>\\\nsudo yum remove docker \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-client</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-client-latest</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-common</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-latest</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-latest-logrotate</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-logrotate</span> \\\\\\\n                  docker<span style=\\\"color: rgb(136, 0, 0);\\\">-engine</span>\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 配置docker yum源。</span>\\\nsudo yum install <span style=\\\"color: rgb(136, 0, 0);\\\">-y</span> yum<span style=\\\"color: rgb(136, 0, 0);\\\">-utils</span>\\\nsudo yum<span style=\\\"color: rgb(136, 0, 0);\\\">-config-manager</span> \\\\\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">--add-repo</span> \\\\\\\nhttp://mirrors.aliyun.com/docker<span style=\\\"color: rgb(136, 0, 0);\\\">-ce</span>/linux/centos/docker<span style=\\\"color: rgb(136, 0, 0);\\\">-ce</span>.repo\\\n\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 安装 最新 docker</span>\\\nsudo yum install <span style=\\\"color: rgb(136, 0, 0);\\\">-y</span> docker<span style=\\\"color: rgb(136, 0, 0);\\\">-ce</span> docker<span style=\\\"color: rgb(136, 0, 0);\\\">-ce-cli</span> containerd.io docker<span style=\\\"color: rgb(136, 0, 0);\\\">-buildx-plugin</span> docker<span style=\\\"color: rgb(136, 0, 0);\\\">-compose-plugin</span>\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 启动&amp; 开机启动docker； enable + start 二合一</span>\\\nsystemctl enable docker <span style=\\\"color: rgb(136, 0, 0);\\\">--now</span>\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 配置加速</span>\\\nsudo mkdir <span style=\\\"color: rgb(136, 0, 0);\\\">-p</span> /etc/docker\\\nsudo <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">tee</span></span> /etc/docker/daemon.json &lt;&lt;-<span style=\\\"color: rgb(0, 85, 0);\\\">'EOF'</span>\\\n{\\\n    <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;registry-mirrors&quot;</span>: [\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://do.nark.eu.org&quot;</span>,\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://dc.j8.work&quot;</span>,\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://docker.m.daocloud.io&quot;</span>,\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://dockerproxy.com&quot;</span>,\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://docker.mirrors.ustc.edu.cn&quot;</span>,\\\n        <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;https://docker.nju.edu.cn&quot;</span>\\\n    ]\\\n}\\\nEOF\\\nsudo systemctl daemon<span style=\\\"color: rgb(136, 0, 0);\\\">-reload</span>\\\nsudo systemctl restart docker</span></span></div><hr/><h3 style=\\\"color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiQ3p1R1RLd1g2aEcifQ==;\\\"><span style=\\\"font-size: 15.4px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">常见命令</span></span></span></span></h3><div><br/></div><div style=\\\"--en-codeblock:true;--en-blockId:pcGySmUAyM4;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"font-size: 12.6px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(119, 119, 119);\\\">#查看运行中的容器</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">ps</span></span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#查看所有容器</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">ps</span></span> <span style=\\\"color: rgb(136, 0, 0);\\\">-a</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#获取所有容器id：</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">ps</span></span> <span style=\\\"color: rgb(136, 0, 0);\\\">-aq</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#搜索镜像</span>\\\ndocker search nginx\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#下载镜像</span>\\\ndocker pull nginx\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#下载指定版本镜像</span>\\\ndocker pull nginx:<span style=\\\"color: rgb(136, 0, 0);\\\">1.26</span>.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#查看所有镜像</span>\\\ndocker images\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#删除指定id的镜像</span>\\\ndocker rmi e784f4560448\\\n\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#运行一个新容器</span>\\\ndocker run nginx\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#停止容器</span>\\\ndocker stop keen_blackwell\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#启动容器</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">start</span></span> <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#重启容器</span>\\\ndocker restart <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#查看容器资源占用情况</span>\\\ndocker stats <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#查看容器日志</span>\\\ndocker logs <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#删除指定容器</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">rm</span></span> <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\">#强制删除指定容器</span>\\\ndocker <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">rm</span></span> -f <span style=\\\"color: rgb(136, 0, 0);\\\">592</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 后台启动容器</span>\\\ndocker run <span style=\\\"color: rgb(136, 0, 0);\\\">-d</span> <span style=\\\"color: rgb(136, 0, 0);\\\">--name</span> mynginx nginx\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 后台启动并暴露端口</span>\\\ndocker run <span style=\\\"color: rgb(136, 0, 0);\\\">-d</span> <span style=\\\"color: rgb(136, 0, 0);\\\">--name</span> mynginx <span style=\\\"color: rgb(136, 0, 0);\\\">-p</span> <span style=\\\"color: rgb(136, 0, 0);\\\">80</span>:<span style=\\\"color: rgb(136, 0, 0);\\\">80</span> nginx\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 进入容器内部</span>\\\ndocker exec <span style=\\\"color: rgb(136, 0, 0);\\\">-it</span> mynginx /bin/bash\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 查看容器详情</span>\\\ndocker container inspect mynginx\\\ndocker inspect mynginx\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 提交容器变化打成一个新的镜像</span>\\\ndocker commit <span style=\\\"color: rgb(136, 0, 0);\\\">-m</span> <span style=\\\"color: rgb(0, 85, 0);\\\">&quot;update index.html&quot;</span> mynginx mynginx:v1.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 保存镜像为指定文件</span>\\\ndocker save <span style=\\\"color: rgb(136, 0, 0);\\\">-o</span> mynginx.tar mynginx:v1.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 删除多个镜像</span>\\\ndocker rmi bde7d154a67f <span style=\\\"color: rgb(136, 0, 0);\\\">94543</span>a6c1aef e784f4560448\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 加载镜像</span>\\\ndocker load <span style=\\\"color: rgb(136, 0, 0);\\\">-i</span> mynginx.tar \\\n\\\n\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 登录 docker hub</span>\\\ndocker login\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 重新给镜像打标签</span>\\\ndocker tag mynginx:v1.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span> leifengyang/mynginx:v1.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span>\\\n<span style=\\\"color: rgb(119, 119, 119);\\\"># 推送镜像</span>\\\ndocker push leifengyang/mynginx:v1.<span style=\\\"color: rgb(136, 0, 0);\\\">0</span></span></span></div><hr/><h3 style=\\\"color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiYTI1UlMyVlJjeUwifQ==;\\\"><span style=\\\"font-size: 15.4px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">存储</span></span></span></span></h3><div><br/></div><div style=\\\"--en-codeblock:true;--en-blockId:JPUSTmFnVD7;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"font-size: 12.6px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(0, 0, 0);\\\">两种方式，注意区分：\\\n● 目录挂载： </span><span style=\\\"color: rgb(136, 0, 0);\\\">-v</span> /app/nghtml:/usr/share/nginx/html\\\n● 卷映射：<span style=\\\"color: rgb(136, 0, 0);\\\">-v</span> ngconf:/etc/nginx\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">---------------------------------</span>\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">1</span>、卷映射：<span style=\\\"color: rgb(136, 0, 0);\\\">-v</span> 卷:容器内目录\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">2</span>、卷在外部主机默认存放位置：/var/lib/docker/volumes/卷名\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">3</span>、列出所有的卷操作\\\ndocker volume <span style=\\\"color: navy;\\\"><span style=\\\"font-weight: 700;\\\">ls</span></span>\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">4</span>、创建一个卷\\\ndocker volume create 卷名\\\n<span style=\\\"color: rgb(136, 0, 0);\\\">5</span>、查看某个卷的详情\\\ndocker volume inspect 卷名</span></span></div><hr/><h3 style=\\\"color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiT1B3VlNhemNrTk8ifQ==;\\\"><span style=\\\"font-size: 15.4px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">网络</span></span></span></span></h3><div><br/></div><div style=\\\"--en-codeblock:true;--en-blockId:eAwtQe0o718;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"font-size: 12.6px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(0, 0, 0);\\\">docker network  --help\\\n# 创建自定义网络，实现主机名作为稳定域名访问。\\\n# 自定义网络\\\ndocker network create mynet\\\n\\\n# docker为每个容器分配唯一IP，使用容器ip+容器端口可以互相访问\\\n# 运行镜像并且添加为自定义网络\\\ndocker run -d -p 88:80 --name app01 --network mynet nginx</span></span></span></div><hr/><h3 style=\\\"color:rgb(63, 63, 63);other-props:eyJibG9ja0lkIjoiWF94blJhZ0tWTkQifQ==;\\\"><span style=\\\"font-size: 15.4px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\"><span style=\\\"font-weight: bold;\\\">Dockerfile 自定义镜像</span></span></span></span></h3><table style=\\\"--en-fitwindow:false;border-left:1px solid #d9d9d9;border-top:1px solid #d9d9d9;border-collapse:collapse;width:380px;\\\" width=\\\"380px\\\"><colgroup><col style=\\\"width: 190px;\\\"></col><col style=\\\"width: 190px;\\\"></col></colgroup><tbody><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指令</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">作用</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">FROM</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指定镜像基础环境</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">RUN</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">运行自定义命令</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">CMD</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">容器启动命令或参数</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">LABEL</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">自定义标签</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">EXPOSE</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指定暴露端口</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">ENV</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">环境变量</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">ADD</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">添加文件到镜像</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">COPY</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">复制文件到镜像</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">ENTRYPOINT</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">容器固定启动命令</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">VOLUME</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">数据卷</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">USER</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指定用户和用户组</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">WORKDIR</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指定默认工作目录</span></span></span></div></td></tr><tr style=\\\"box-sizing:border-box; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:; border-right-color:; border-bottom-color:; border-left-color:;\\\"><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">ARG</span></span></span></div></td><td style=\\\"--en-typeInfo:{&quot;type&quot;:&quot;text&quot;,&quot;data&quot;:{}};border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;padding:10px;text-align:left;\\\"><div><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(63, 63, 63);\\\">指定构建参数</span></span></span></div></td></tr></tbody></table><p style=\\\"padding-left:40px;color:rgb(63, 63, 63);\\\"><span style=\\\"font-size: 14px;\\\"><span style=\\\"font-family: -apple-system-font,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;\\\"><span style=\\\"color: rgb(63,63,63);\\\">构建命令</span></span></span></p><p style=\\\"padding-left:40px;color:rgb(63, 63, 63);\\\"><span style=\\\"font-size: 12.6px;\\\"><code style=\\\"-en-code: true\\\"><span style=\\\"font-family: -apple-system-font, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei UI, Microsoft YaHei, Arial, sans-serif;\\\"><span style=\\\"color: rgb(221, 17, 68);\\\">docker build -f Dockerfile -t mynginx:v1.0 .</span></span></code></span></p><p style=\\\"text-align:start;background-color:rgb(255, 255, 255);color:rgb(10, 10, 10);\\\"><span style=\\\"font-size: 0;\\\"><span style=\\\"font-family: system-ui,PingFang SC,Helvetica Neue,Microsoft Yahei,sans-serif;\\\"><span style=\\\"color: rgb(10,10,10);\\\"><span style=\\\"font-weight: 400;\\\"> </span></span></span></span></p><div><br/></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":33982}]"
metadata_diff: {"new":{"id":"17ce4d5ee64843f28b1e492d201c86f5","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348826642,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:02.653Z
created_time: 2025-11-28T21:04:02.653Z
type_: 13