Added instructions for Podman.

This commit is contained in:
Rohan Barar
2024-07-19 08:06:53 +10:00
parent c62391abff
commit 8fbf074307
3 changed files with 81 additions and 80 deletions

View File

@@ -256,7 +256,11 @@ function waCheckContainerRunning() {
local CONTAINER_STATE=""
# Determine container state.
CONTAINER_STATE=$(docker ps --filter name="WinApps" --format '{{.Status}}')
if command -v docker &>/dev/null; then
CONTAINER_STATE=$(docker ps --filter name="WinApps" --format '{{.Status}}')
else
CONTAINER_STATE=$(podman ps --filter name="WinApps" --format '{{.Status}}')
fi
CONTAINER_STATE=${CONTAINER_STATE,,} # Convert the string to lowercase.
CONTAINER_STATE=${CONTAINER_STATE%% *} # Extract the first word.