title: podman pod change port mapping
body: <p>I created a pod with an image to publish a <code>nextjs</code> site that has a lot of manual modifications</p>
  <p>I originally created the pod and image with the image port 3000 mapped to the host port 3000 using this one-liner:</p>
  <p><code>podman run -dt --pod new:alpinenpmpod -p 3000:3000 alpine</code></p>
  <p>How do I map the image's port 3000 to host port 80 now after that the pod and image have been created?</p>
  <p>output of <code>podman pod inspect alpinenpmpod</code>:</p>
  <pre><code>{
      &quot;Id&quot;: &quot;c1abdf9e53b7cf13f232d0f4946a4806261086432fbd5109e38eb7cf8610a98e&quot;,
      &quot;Name&quot;: &quot;alpinenpmpod&quot;,
      &quot;Created&quot;: &quot;2020-08-28T12:25:07.442784426-07:00&quot;,
      &quot;State&quot;: &quot;Stopped&quot;,
      &quot;Hostname&quot;: &quot;alpinenpmpod&quot;,
      &quot;CreateCgroup&quot;: true,
      &quot;CgroupParent&quot;: &quot;/libpod_parent&quot;,
      &quot;CgroupPath&quot;: &quot;/libpod_parent/c1abdf9e53b7cf13f232d0f4946a4806261086432fbd5109e38eb7cf8610a98e&quot;,
      &quot;CreateInfra&quot;: true,
      &quot;InfraContainerID&quot;: &quot;745662de8d1a508d68ea12ab8c764899dcf752aa10d48aafbd026e1794b50d2b&quot;,
      &quot;InfraConfig&quot;: {
          &quot;PortBindings&quot;: {
              &quot;3000/tcp&quot;: [
                  {
                      &quot;HostIp&quot;: &quot;&quot;,
                      &quot;HostPort&quot;: &quot;3000&quot;
                  }
              ]
          },
          &quot;HostNetwork&quot;: false,
          &quot;StaticIP&quot;: &quot;&quot;,
          &quot;StaticMAC&quot;: null,
          &quot;NoManageResolvConf&quot;: false,
          &quot;DNSServer&quot;: null,
          &quot;DNSSearch&quot;: null,
          &quot;DNSOption&quot;: null,
          &quot;NoManageHosts&quot;: false,
          &quot;HostAdd&quot;: null,
          &quot;Networks&quot;: null
      },
      &quot;NumContainers&quot;: 2,
      &quot;Containers&quot;: [
          {
              &quot;Id&quot;: &quot;419dec5dea94d7afd1d1d8d3484857bdeac04b553820c59aab14d41674472bc9&quot;,
              &quot;Name&quot;: &quot;vigorous_brattain&quot;,
              &quot;State&quot;: &quot;exited&quot;
          },
          {
              &quot;Id&quot;: &quot;745662de8d1a508d68ea12ab8c764899dcf752aa10d48aafbd026e1794b50d2b&quot;,
              &quot;Name&quot;: &quot;c1abdf9e53b7-infra&quot;,
              &quot;State&quot;: &quot;configured&quot;
          }
      ]
  }
  </code></pre>
  <p>Also, is there a way I can export this pod along with its images so I can run them somewhere else?</p>