-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5731 from jsternberg/remove-docker-api-dependency
testutil: copy slim version of the docker client into testutil
- Loading branch information
Showing
214 changed files
with
255 additions
and
26,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b.com/docker/docker/client/client_unix.go → util/testutil/dockerd/client/client_unix.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/docker/docker/client/client_windows.go → ...testutil/dockerd/client/client_windows.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
) | ||
|
||
// ErrorConnectionFailed returns an error with host in the error message when connection to docker daemon failed. | ||
func ErrorConnectionFailed(host string) error { | ||
if host == "" { | ||
return errors.New("Cannot connect to the Docker daemon. Is the docker daemon running on this host?") | ||
} | ||
return errors.Errorf("Cannot connect to the Docker daemon at %s. Is the docker daemon running?", host) | ||
} |
Oops, something went wrong.