Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecConfig ¶
func ExecConfig(cli client.CommonAPIClient, ec types.ExecConfig) types.ExecConfig
ExecConfig converts an ExecConfig to be compatible with the provided client's version, and returns a new config.
This function assumes that the exec will run on a "sane" configuration, with common utilities like sh (POSIX), cd, etc.
Currently, this function does the following:
- Docker API 1.35 introduces exec working dirs. For versions below 1.35, sh is used to cd into a directory first instead of being done by the Docker daemon.
func Wrap ¶
func Wrap(cli client.CommonAPIClient) client.CommonAPIClient
Wrap wraps a Docker client with compatibility fixes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.