Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: Add TencentOS Server to supported distributions

Aperta
#548 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
docker, shell

Direzione di ricerca

In install.sh, inizia dalla logica di rilevamento della distribuzione e riproduci il comando curl segnalato su TencentOS Server V4.4. Conferma che ID=tencentos raggiunga il percorso di installazione compatibile con CentOS/RHEL e che l'installazione di Docker CE venga completata; il lavoro è terminato quando lo script di convenienza riconosce TencentOS e installa Docker correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

The Docker convenience install script (get.docker.com) does not recognize TencentOS Server as a supported distribution. When running the script on TencentOS, it fails at the distribution detection stage because ID=tencentos is not in the list of recognized distributions.

Environment

  • OS: TencentOS Server V4.4
  • /etc/os-release (key fields):
    NAME="TencentOS Server"
    VERSION="4.4"
    ID=tencentos
    ID_LIKE="tencentos"
    VERSION_ID="4.4"
    PLATFORM_ID="platform:el9"
    
  • Arch: x86_64
  • Package Manager: dnf (yum compatible)

Steps to Reproduce

# On a fresh TencentOS Server V4.4 instance:
curl -fsSL https://get.docker.com | sh

The script fails because it cannot identify TencentOS as a supported distribution for Docker CE installation.

Expected Behavior

TencentOS Server should be detected as a RHEL/CentOS-compatible distribution, and Docker CE should be installed using the CentOS/RHEL repository.

Actual Behavior

The install script does not recognize ID=tencentos and exits without installing Docker.

Workaround

Manual installation works fine:

dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl enable --now docker

This confirms TencentOS is fully compatible with the CentOS Docker repository — it's purely a detection issue in the convenience script.

Suggested Fix

Add tencentos to the distribution detection in install.sh, mapping it to use the CentOS repository:

tencentos)
    # TencentOS Server is RHEL/CentOS compatible
    $sh_c "dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo"
    $sh_c "dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin"
    ;;

Or more robustly, check PLATFORM_ID for platform:el* to cover all EL-compatible distributions.

Additional Context

  • TencentOS Server is a production Linux distribution maintained by Tencent Cloud, serving millions of instances
  • Fully compatible with RHEL/CentOS ecosystem (EL9 based), uses dnf, supports RPM
  • The CentOS Docker repository works perfectly on TencentOS — only the convenience script detection is missing
  • Official site: https://cloud.tencent.com/product/ts
  • This issue was discovered during automated AI usability testing across Linux distributions
Lingua principale
Shell
Stelle
3.2k
Fork
863
Merge medio
3h 15m
PR unite (30g)
2

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di docker/docker-install

Tutte le issue di docker/docker-install

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.