I was following this article to simplify deployment to a remote docker host via docker-compose.
While I’m able to create a context via docker as described in the article, deployment doesn’t work using docker-compose - either using the DOCKER_HOST
environment variable or the --context
option. I also noticed that the --context
option isn’t listed in the docker-compose reference.
If I try…
docker-compose --context mycontext up -d
…it just spits back the usage info; and if I try…
DOCKER_HOST=ssh://user@000.000.000.000 docker-compose up -d
…I get a traceback with a “[18019] Failed to execute script docker-compose” message.
Anyone have any insights or suggestions?