Fixing TencentOS Server Detection In Docker’s
The Docker convenience install script skips TencentOS Server V4.4 entirely - despite it being fully compatible with RHEL and CentOS-based repos. This glitch stumps thousands of users trying to automate deployments on China’s most widely used Linux server platform.
Here’s the deal: TencentOS Server’s ID=tencentos isn’t in Docker’s recognized distribution list, so the install fails before Docker ever loads. But here’s the kicker: the underlying OS is not just supported - it’s ready. The /etc/os-release confirms ID=tencentos, VERSION=4.4, and PLATFORM_ID=platform:el9, all perfectly aligned with CentOS/RHEL compatibility.
Behind the scenes, Docker’s script treats TencentOS as unrecognized due to a detection flaw - not a compatibility gap. Manual installers sidestep this by adding the CentOS repo and installing from it, proving the issue is script-based, not system-based.
To fix this, Docker’s installer should explicitly map tencentos to the CentOS repository: a single addition to install.sh would auto-resolution the distribution. Or, for robustness, check PLATFORM_ID=platform:el* to catch all EL-compatible distros, including TencentOS, in one go.
The real lesson? Automation tools often hide gaps in legacy compatibility. TencentOS Server isn’t broken - it’s just waiting for the right detection logic. Does Docker’s install script deserve a pat for overlooking a market’s most active Linux distribution?
Can we count on Docker to finally get it right - before another developer wastes hours on a detection snag?