Since we are running git bash on windows we need to prevent automatic path conversion. This can be done with the following environment variable:

$ export MSYS_NO_PATHCONV=1

Then we run the command to create a new pod and start a container in that pod:

$ podman run -d \
  --name rveen-dev-hugo \
  --pod new:rveen-dev \
  -p 1313:1313 \
  -v d:/git/rveen.dev:/src \
  -w /src \
  docker.io/klakegg/hugo:ext \
  server --bind 0.0.0.0 \
  --buildDrafts \
  --disableFastRender \
  --poll 500ms
714d1ff3945e3c7f5ede7fde0bf471b880682f3059f9b76b4b746007704d094e

For windows, we leave out the :Z parameter for the volume. On linux it would read /src:Z for the remote volume.

Done working for the day#

To safely stop the pod we use the following command

$ podman pod stop rveen-dev
rveen-dev

If we want to continue working another time, we can use the following command to start it up:

$ podman pod start rveen-dev
rveen-dev

We can check it with the podman ps command:

$ podman ps
CONTAINER ID  IMAGE                                    COMMAND               CREATED        STATUS         PORTS                   NAMES
4834b27c737a  localhost/podman-pause:5.4.2-1743552000                        5 minutes ago  Up 27 seconds  0.0.0.0:1313->1313/tcp  29d539c6164f-infra
714d1ff3945e  docker.io/klakegg/hugo:ext               server --bind 0.0...  5 minutes ago  Up 27 seconds  0.0.0.0:1313->1313/tcp  rveen-dev-hugo

To change the configuration of an existing pod, we have to completely remove pod and create again with new configuration.