mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 09:21:03 +01:00
Abort Portainer start without Docker socket
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
|
||||
## 2.37.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)
|
||||
|
||||
|
||||
@@ -42,4 +42,4 @@ schema:
|
||||
slug: portainer
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "2.37.0"
|
||||
version: "2.37.2"
|
||||
|
||||
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user