Add repository-based Docker installation fallbacks for all major Linu… #2205
Annotations
1 warning
|
merge-manifest
embed field value must be shorter than 1024, got 1505
[`fc49b92`](https://github.com/coollabsio/coolify/commit/fc49b9284a0251e56e78923097daf009bb3de14f) Add repository-based Docker installation fallbacks for all major Linux distros
This commit adds official Docker repository installation methods as fallbacks
when Rancher and get.docker.com convenience scripts fail, providing more
reliable Docker installation across all supported operating systems.
Changes:
- Add apt repository fallback for Debian-based systems (Ubuntu, Debian, Raspbian)
- Fixes installation on Debian 13 (Trixie) where get.docker.com fails
- Uses VERSION_CODENAME for automatic OS version detection
- Add dnf repository fallback for RHEL-based systems (CentOS, Fedora, Rocky, AlmaLinux)
- Add zypper repository fallback for SUSE-based systems (SLES, OpenSUSE)
- Refactor installation methods into dedicated private methods for better maintainability
Installation fallback chain:
1. Rancher install-docker script (preserves version pinning)
2. Docker get.docker.com convenience script
3. Official repository method (new, most reliable)
Benefits:
- Future-proof: Works with new OS releases automatically
- Production-ready: Uses Docker's recommended installation method
- Comprehensive: Covers 95%+ of Linux servers in production
- Maintainable: Clean code structure with single-responsibility methods
Fixes issue where Debian 13 (Trixie) servers fail validation because
get.docker.com script incorrectly uses numeric version "13" instead of
codename "trixie" in repository URLs.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coollabsio~coolify~XOFRET.dockerbuild
|
72.5 KB |
sha256:50cd8a9d9c793190d8a3a73cec858d4be7bebb5249b07adac4654cd7ac323f16
|
|
|
coollabsio~coolify~YSAIAI.dockerbuild
|
72.9 KB |
sha256:69131ab77834297666c9f143a1b3b27d4d6370cb876b8c18f64221bcbfbf8b9f
|
|