Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Cleanup lingering code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Apr 19, 2020
1 parent 15b9501 commit d84bc3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
"github.com/kr/pretty"
"golang.org/x/crypto/ssh/terminal"
)

Expand Down Expand Up @@ -128,7 +127,6 @@ func (cursor *Cursor) clearLine() {
func (di *DockerInterface) PullImageWithProgressReporting(ctx context.Context, imageRef string) error {
out, err := di.dockerClient.ImagePull(ctx, imageRef, types.ImagePullOptions{})
if err != nil {
pretty.Printf("WARNING: Unable to pull Intelligent Manifest Builder image (%s): %s\n", imageRef, err.Error())
return err
}
defer out.Close()
Expand Down Expand Up @@ -242,7 +240,6 @@ func NewInteractiveContainerConfigWithImageRef(imageRef string) *InteractiveCont
}

// RunInteractiveContainer starts and runs a container interactively, allowing user interaction with console applications
// func (di *DockerInterface) RunInteractiveContainer(ctx context.Context, imageRef string, hostConfig container.HostConfig) (container.ContainerCreateCreatedBody, container.ContainerWaitOKBody, error) {
func (di *DockerInterface) RunInteractiveContainer(ctx context.Context, icc *InteractiveContainerConfig) error {
resp, err := di.dockerClient.ContainerCreate(ctx, icc.ContainerConfig, icc.HostConfig, nil, "")
if err != nil {
Expand Down

0 comments on commit d84bc3c

Please sign in to comment.