<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>w_haibara</author_name>
  <author_url>https://blog.hatena.ne.jp/w_haibara/</author_url>
  <blog_title>はいばらのブログ</blog_title>
  <blog_url>https://haibara-works.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>自分用スニペットです。 表題の「Dockerの公開ポート設定」とは以下のようなものです。 -p 8080:80 -p 192.168.1.100:8080:80 -p 8080:80/udp Container networking | Docker Documentation このように、-p 1:2として「1--&gt;2」という対応、また-p &quot;1:2, 3,4&quot;として「1--&gt;2」「3--&gt;4」という対応を解釈するようなものを実装しました。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhaibara-works.hatenablog.com%2Fentry%2F2021%2F06%2F15%2F173001&quot; title=&quot;GolangでDockerの公開ポート設定のように数値のペアをフラグとして受け取る - はいばらのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-15 17:30:01</published>
  <title>GolangでDockerの公開ポート設定のように数値のペアをフラグとして受け取る</title>
  <type>rich</type>
  <url>https://haibara-works.hatenablog.com/entry/2021/06/15/173001</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
