Docker Community Forums

Share and learn in the Docker community.

Running docker with -H argument causes: first path segment in URL cannot contain colon

docker

(Tudor2004) #1

I’m trying to run the following commnand docker --tlsverify -H=1.2.3.4:2376 ps but this is causing the following error: parse 1.2.3.4:2376: first path segment in URL cannot contain colon

This is the output of my docker info

Server Version: 18.09.0
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Mac
Architecture: x86_64
CPUs: 4
Total Memory: 1.952GiB

#2

I was suffering with this issue too trying to connect to the secure port 2376 but then I came across that if you add tcp:// to the beginning of the IP it should connect so the format ‘-H tcp://1.2.3.4:2376’ worked for me. Hope this helps.