docs icon indicating copy to clipboard operation
docs copied to clipboard

Bad quotes in command samples

Open alexfauquette opened this issue 3 weeks ago • 2 comments

Is this a docs issue?

  • [x] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

I was following the blog post https://www.docker.com/blog/how-to-deploy-on-remote-docker-hosts-with-docker-compose/

And the following command when I adapt it with my ssh config, it fails

DOCKER_HOST=“ssh://user@remotehost” docker-compose up -d

Failed to initialize: unable to resolve docker endpoint: invalid bind address format: “ssh://user@remotehost”

After some time debuging, I realised the quotation marks are weird, and removing the one from the copy/past of the docs to put m=normal ones solves the error

DOCKER_HOST="ssh://user@remotehost" docker-compose up -d

Location

https://www.docker.com/blog/how-to-deploy-on-remote-docker-hosts-with-docker-compose/

Suggestion

Please use normal quotes in your blog examples

alexfauquette avatar Dec 08 '25 07:12 alexfauquette

Thanks for taking the time to report @alexfauquette - let me fwd thid to the blog team

dvdksn avatar Dec 08 '25 09:12 dvdksn

Looks like there's some more occurrences as well; both in example commands and output of commands; at least this one will likely fail as well;

$ docker context create remote ‐‐docker “host=ssh://user@remotemachine”
remote
Successfully created context “remote”

thaJeztah avatar Dec 08 '25 10:12 thaJeztah

Closing since this is not a docs.docker.com issue and we've let the responsible team know.

dvdksn avatar Dec 19 '25 12:12 dvdksn