Skip to content

Commit

Permalink
fix: work around problem with ports not exposed in podman pod start
Browse files Browse the repository at this point in the history
After `podman pod stop X` and then `podman pod start X`, ports are not
responding to requests from host to guest.

containers/podman#7103
  • Loading branch information
ahwayakchih committed Dec 18, 2020
1 parent ac47408 commit 337f095
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ function startPod () {
podman pod exists "$podName" || buildPod "$podName" || return 1

echo "Starting '$podName' pod..."
podman pod start "$podName" || return 1
# Use `restart` instead of `start` because of https://github.com/containers/podman/issues/7103
# Issue is closed, but on podman v2.2.1 it seems to still exist
podman pod restart "$podName" || return 1

podman attach --no-stdin --sig-proxy=false "${podName}-nodebb"
}
Expand Down

0 comments on commit 337f095

Please sign in to comment.