Merge pull request #2329 from alexbelgium/codex/fix-issue-with-hassio-addons-#2328

Abort Portainer startup when no Docker socket is present and bump version to 2.37.2
This commit is contained in:
Alexandre
2026-01-02 22:00:16 +01:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@@ -1,4 +1,8 @@
## 2.37.0-2 (02-01-2026)
- Improve Docker socket detection with fallback path logging
- Stop startup when no Docker socket is available
## 2.37.0 (13-12-2025)
- Update to latest version from portainer/portainer (changelog : https://github.com/portainer/portainer/releases)

View File

@@ -42,4 +42,4 @@ schema:
slug: portainer
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.37.0"
version: 2.37.0-2

View File

@@ -11,7 +11,20 @@ declare -a options
options+=(--data /data)
options+=(--bind 0.0.0.0:9000)
#options+=(--templates /opt/portainer/templates.json)
options+=(--host unix:///var/run/docker.sock)
docker_socket="/var/run/docker.sock"
if [[ ! -S "$docker_socket" ]]; then
fallback_socket="/run/docker.sock"
if [[ -S "$fallback_socket" ]]; then
docker_socket="$fallback_socket"
bashio::log.info "Docker socket not found at /var/run/docker.sock, using /run/docker.sock."
else
bashio::log.error "Docker socket not found at /var/run/docker.sock or /run/docker.sock."
exit 1
fi
fi
options+=(--host "unix://${docker_socket}")
##############
# SSL CONFIG #