dind

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeDockerdProxy added in v0.15.0

func ServeDockerdProxy(ctx context.Context, mounts map[string]string, lis net.Listener, dockerSock *url.URL) error

ServeDockerdProxy listens on the given listener for traffic intended for `dockerd`. It proxies responses back from `dockerd` directly, but modifies requests to `dockerd` to try to translate them for the host `dockerd` when the client is calling from inside of a container.

As of writing, it only does this by modifying CreateContainer HostConfig.Binds to use the host path equivalent of the client's mount source. Note that this only works if the client's mount source is mounted from the host, which, in `forge`, is often the case. Unfortunately, it can't support _everything_.

It always returns an error and doesn't exit until the given context.Context is done or an error is encountered, similar to http.Serve.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL