mirror of
https://github.com/status-im/migrate.git
synced 2025-02-22 16:08:04 +00:00
* NewDockerContainer: restore "from env" behavior commit c31948caebf21924fbf624cc863a8fa68ffd46cb replaced the deprecated `dockerclient.NewEnvClient` with `dockerclient.NewClientWithOpts`, but did not add the `FromEnv` option to keep the old behavior. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> * NewDockerContainer: use API version negotiation This helps in situations where the daemon is older than the API client. API version negotiation checks the maximum supported API version by the daemon, and downgrades to that API version if needed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>