Skip to content

Commit d9140ad

Browse files
Fixed handling of force removal of stuck podman containers in stopping state
1 parent 2dabbe0 commit d9140ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OracleIdentityGovernance/samples/scripts/agentManagement.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ if [ -n "${CONTAINER_ID}" ]; then
729729

730730
# Kill any processes containing the process ID.
731731
# This kills the child processes too.
732+
# shellcheck disable=SC2046
732733
kill -9 `ps -ef | grep -v grep | grep ${CONTAINER_PROCESS_ID} | awk '{print $2}'`
733734

734735
# Stop the container, as Podman doesn't notice the processes are dead until you interact with the container.

0 commit comments

Comments
 (0)