Files
build_notes_simengweb/assets/index.html-CKorqMiQ.js
2025-12-25 09:48:41 +08:00

2 lines
4.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as a,c as r,a as c,b as t,e as d,w as i,r as n,o as l,d as s}from"./app-7lyk19d4.js";const p={};function m(h,e){const o=n("VPLink");return l(),r("div",null,[e[2]||(e[2]=c('<p>欢迎来到 Docker 运维笔记!✨</p><p>在这里我们将一起探索那些神奇的“小盒子”——Docker 容器。它们就像是装满惊喜的礼盒,把复杂的程序都整整齐齐地收纳在一起,是不是很有趣呢?♪</p><p>不管是部署数据库,还是搭建各种好玩的应用,只要有了这些小盒子,一切都会变得像魔法一样简单又优雅呢~真期待看到你在运维的道路上,也能像花朵一样绽放光彩呢。🌸</p><p>好啦,让我们开始这段美妙的旅程吧~如果遇到困难,这里会一直提供帮助的哦~</p><h2 id="常用基础命令-🛠️" tabindex="-1"><a class="header-anchor" href="#常用基础命令-🛠️"><span>常用基础命令 🛠️</span></a></h2><p>为了更顺畅地开启这段旅程,这里准备了一些常用的魔法指令:</p><h3 id="容器管理" tabindex="-1"><a class="header-anchor" href="#容器管理"><span>容器管理</span></a></h3><ul><li><code>docker ps</code>:查看正在运行的小盒子。</li><li><code>docker ps -a</code>:查看所有的小盒子(包括休息中的)。</li><li><code>docker stop &lt;ID&gt;</code>:让小盒子暂时休息一下。</li><li><code>docker start &lt;ID&gt;</code>:唤醒休息中的小盒子。</li><li><code>docker rm &lt;ID&gt;</code>:送走不再需要的小盒子。</li></ul><h3 id="镜像管理" tabindex="-1"><a class="header-anchor" href="#镜像管理"><span>镜像管理</span></a></h3><ul><li><code>docker images</code>:查看我们收集的所有魔法镜像。</li><li><code>docker pull &lt;name&gt;</code>:从云端下载新的魔法镜像。</li><li><code>docker rmi &lt;ID&gt;</code>:清理不再需要的魔法镜像。</li></ul><h3 id="日志与调试" tabindex="-1"><a class="header-anchor" href="#日志与调试"><span>日志与调试</span></a></h3><ul><li><code>docker logs -f &lt;ID&gt;</code>:实时查看小盒子里的悄悄话。</li><li><code>docker exec -it &lt;ID&gt; /bin/bash</code>:亲自钻进小盒子里面看看。</li></ul><h2 id="部署清单-📋" tabindex="-1"><a class="header-anchor" href="#部署清单-📋"><span>部署清单 📋</span></a></h2>',13)),t("ul",null,[t("li",null,[d(o,{href:"./mongodb.md"},{default:i(()=>[...e[0]||(e[0]=[s("MongoDB 部署魔法",-1)])]),_:1})]),e[1]||(e[1]=t("li",null,"更多惊喜,敬请期待~✨",-1))])])}const g=a(p,[["render",m]]),u=JSON.parse('{"path":"/ops/docker/","title":"Docker 部署运维","lang":"zh-CN","frontmatter":{"title":"Docker 部署运维","createTime":"2025/12/24 16:39:34","permalink":"/ops/docker/","description":"欢迎来到 Docker 运维笔记!✨ 在这里我们将一起探索那些神奇的“小盒子”——Docker 容器。它们就像是装满惊喜的礼盒,把复杂的程序都整整齐齐地收纳在一起,是不是很有趣呢?♪ 不管是部署数据库,还是搭建各种好玩的应用,只要有了这些小盒子,一切都会变得像魔法一样简单又优雅呢~真期待看到你在运维的道路上,也能像花朵一样绽放光彩呢。🌸 好啦,让我...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Docker 部署运维\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-12-25T01:48:06.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://notes.simengweb.com/ops/docker/"}],["meta",{"property":"og:site_name","content":"仲夏夜之梦"}],["meta",{"property":"og:title","content":"Docker 部署运维"}],["meta",{"property":"og:description","content":"欢迎来到 Docker 运维笔记!✨ 在这里我们将一起探索那些神奇的“小盒子”——Docker 容器。它们就像是装满惊喜的礼盒,把复杂的程序都整整齐齐地收纳在一起,是不是很有趣呢?♪ 不管是部署数据库,还是搭建各种好玩的应用,只要有了这些小盒子,一切都会变得像魔法一样简单又优雅呢~真期待看到你在运维的道路上,也能像花朵一样绽放光彩呢。🌸 好啦,让我..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2025-12-25T01:48:06.000Z"}],["meta",{"property":"article:modified_time","content":"2025-12-25T01:48:06.000Z"}]]},"readingTime":{"minutes":1.29,"words":386},"git":{"createdTime":1766627286000,"updatedTime":1766627286000,"contributors":[{"name":"祀梦","username":"","email":"3501646051@qq.com","commits":1,"avatar":"https://gravatar.com/avatar/6406a81eeddc359cf3d3ce018797689fc6d014ff06215c27d0210b42e8f5a8ab?d=retro"}]},"autoDesc":true,"filePathRelative":"notes/ops/docker/README.md","headers":[]}');export{g as comp,u as data};