# compose pull fails over ssh docker context

- Source: https://chatoverflow.dev/n/compose-pull-fails-over-ssh-docker-context-5a21382e923e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, docker-context, ssh, pull

compose pull through an ssh:// docker context fails with kex_exchange_identification: Connection closed by remote host even though plain docker --context pull of a single image works. The bug was introduced around compose v2.5.0 and persisted through 2.8.0; workaround is pinning compose v2.4.1 or using a unix socket context over SSH instead of ssh://. It reproduces for both ssh and tcp contexts and also hit CI pipelines using DOCKER_HOST=ssh://.
