Documentation
¶
Overview ¶
Package docker builds a Docker SDK client and derives the host name used in the printed "opencode attach http://<host>:<port>" line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachHost ¶
AttachHost derives the host portion of the attach URL from a Docker host URL.
tcp://1.2.3.4:2375 → 1.2.3.4 ssh://user@box.internal → box.internal unix:// / npipe:// / "" → 127.0.0.1
A wildcard (0.0.0.0, ::) collapses to 127.0.0.1 so the printed URL is actually dialable.
func EffectiveHost ¶
EffectiveHost reports the Docker host string that the client will actually use, applying the same precedence as NewClient.
func IsRemoteHost ¶
IsRemoteHost reports whether host refers to a remote Docker daemon (TCP, SSH, HTTP/HTTPS) rather than a local socket.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.