Skip to content

Commit

Permalink
Remove docker/docker dependency :) :) :)
Browse files Browse the repository at this point in the history
  • Loading branch information
xetorthio committed Oct 31, 2017
1 parent 6009bfd commit 2d6cb93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
22 changes: 2 additions & 20 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
name = "github.com/docker/distribution"
version = "2.6.2"

[[constraint]]
name = "github.com/docker/docker"
version = "1.13.1"

[[constraint]]
name = "github.com/docker/go-connections"
version = "0.3.0"
Expand Down
10 changes: 2 additions & 8 deletions docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"docker.io/go-docker/api/types/swarm"
"docker.io/go-docker/api/types/volume"
"github.com/containerd/containerd/reference"
"github.com/docker/docker/pkg/jsonmessage"
"github.com/play-with-docker/play-with-docker/config"
)

Expand Down Expand Up @@ -409,14 +408,9 @@ func (d *docker) pullImage(ctx context.Context, image string) error {
if err != nil {
return err
}
defer responseBody.Close()
_, err = io.Copy(ioutil.Discard, responseBody)

return jsonmessage.DisplayJSONMessagesStream(
responseBody,
os.Stderr,
os.Stdout.Fd(),
false,
nil)
return err
}

func (d *docker) copyIfSet(content []byte, fileName, path, containerName string) error {
Expand Down

0 comments on commit 2d6cb93

Please sign in to comment.