'docker-compose --context no output
docker-compose --context remote (up|dows|ps|...)
doesn't do anything.
although docker --context remote ps
works, connects to the remote and lists the containters. also, running it locally is ok (just docker-compose up
)
docker --version
on local machine: Docker version 20.10.2, build 2291f610ae
docker --version
on remote machine: Docker version 20.10.2, build 2291f61
docker-compose version
on local machine:
docker-compose version 1.28.0, build unknown
docker-py version: 4.4.1
CPython version: 3.9.1
OpenSSL version: OpenSSL 1.1.1i 8 Dec 2020
I don't know what other thing to provide.
EDIT: docker-compose -H "ssh://user@host" up
does exactly that what the --context
does, nothing.
docker-compose --verbose --context remote up
prints out just this: compose.config.config.find: Using configuration files: ./docker-compose.yml
Solution 1:[1]
for me, COMPOSE_PARAMIKO_SSH=1 fixed it. Not 100% sure why- something something reusing ssh connections
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | quq |