<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>映射 on 极客老墨</title>
    <link>https://blog.hankmo.com/tags/%E6%98%A0%E5%B0%84/</link>
    <description>Recent content in 映射 on 极客老墨</description>
    <generator>Hugo -- 0.138.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Fri, 15 Nov 2019 16:16:45 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/tags/%E6%98%A0%E5%B0%84/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Docker入门系列八——使用Dockerfile构建镜像</title>
      <link>https://blog.hankmo.com/posts/tech/docker-dockerfile/</link>
      <pubDate>Fri, 15 Nov 2019 16:16:45 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/docker-dockerfile/</guid>
      <description>Dockfile就是一个文本文件，里边包含了一行行的指令，用来描述如何创建自定义镜像。使用 `docker build` 命令来基于Dockerfile文件和上下文构建镜像，构建上下文指的是特定路径(PATH或URL)的文件集合，PATH用来指定本地文件系统目录，而URL用来指定Git仓库的地址，它们包含的所有文件(子目录或子模块)都会被递归处理。在大多数情况下，最好以空目录作为上下文，并将Dockerfile保存在该目录中。仅添加构建Dockerfile所需的文件。</description>
    </item>
    <item>
      <title>Docker入门系列七——端口映射与容器互联</title>
      <link>https://blog.hankmo.com/posts/tech/docker-mapping/</link>
      <pubDate>Sun, 15 Sep 2019 16:16:45 +0000</pubDate>
      <guid>https://blog.hankmo.com/posts/tech/docker-mapping/</guid>
      <description>如果外部要访问容器，需要将容器的端口开放出来，使用 `-p` 或 `-P` (大写)参数来映射容器端口和宿主机端口的关系。-p：明确指定端口映射，每个端口只能绑定一个容器，格式包括：IP:HOST_PORT:CONTAINER_PORT|IP:CONTAINER_PORT|HOST_PORT:COINTAINER_PORT</description>
    </item>
  </channel>
</rss>
