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

`docker model` CLI detects "Docker Engine" on Docker Desktop for Windows and tries to start standalone runner (port 12434 conflict)

Aperta
#1,077 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, go
Ambito
cli

Direzione di ricerca

Start with the bundled plugin at C:\Program Files\Docker\cli-plugins\docker-model.exe and reproduce the issue with docker model status against the desktop-linux context. Check how the plugin distinguishes Docker Desktop's runner from a standalone runner and selects the runner image, using the working http://localhost:12434/engines/v1/models endpoint as a reference. Done means the model commands use the available Desktop runner without the port conflict or an inappropriate CUDA image.

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

Descrizione

Environment

  • Windows, Docker Desktop 4.93.0 (240920), context desktop-linux
  • docker model version: Client v1.2.6 / Server v1.2.8, Engine: Docker Engine
  • Plugin path (from docker info): C:\Program Files\Docker\cli-plugins\docker-model.exe
  • CPU: Intel (no NVIDIA GPU)

Problem
Every docker model command (status, ls, list, run) pulls docker/model-runner:latest-cuda and tries to start a standalone docker-model-runner container, which fails because Docker Desktop's Model Runner already listens on 127.0.0.1:12434 (owned by com.docker.backend.exe):

unable to initialize standalone model runner: unable to initialize standalone model runner container: failed to start container docker-model-runner: Error response from daemon: ports are not available: exposing port TCP 127.0.0.1:12434 -> 127.0.0.1:0: listen tcp4 127.0.0.1:12434: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Evidence the Desktop runner works
curl http://localhost:12434/engines/v1/models returns {"object":"list","data":[]}.

Already tried

  • Machine reboot
  • docker desktop disable model-runner + docker desktop enable model-runner --tcp=12434
  • With the Desktop runner disabled, the standalone runner fails binding 172.17.0.1:12434 ("can't bind on the specified endpoint")
  • No MODEL_RUNNER_HOST / DOCKER_HOST env vars set

Notable

  1. CLI reports Engine: Docker Engine while docker version reports Server: Docker Desktop 4.93.0 (240920).
  2. CLI pulls the latest-cuda image on a machine without an NVIDIA GPU.
  3. Client/server version mismatch (1.2.6 vs 1.2.8).

Possibly related: #377 (closed). The fix there was removing a stale plugin from ~/.docker/cli-plugins, but here the resolved plugin is the one bundled with Docker Desktop.

Lingua principale
Go
Stelle
657
Fork
158
Merge medio
2g 11h
PR unite (30g)
11

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun 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/model-runner

Tutte le issue di docker/model-runner

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.