Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit ea98a2d

Browse files
committed
Fix docker-classic creation makefile target
1 parent cc46f84 commit ea98a2d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ lint: ## run linter(s)
6666
--target lint
6767

6868
classic-link: ## create docker-classic symlink if does not already exist
69-
ln -s /usr/local/bin/docker-classic /Applications/Docker.app/Contents/Resources/bin/docker
69+
ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin/docker-classic
7070

7171
help: ## Show help
7272
@echo Please specify a build target. The choices are:

cli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func execMoby(ctx context.Context) {
186186
// Only run original docker command if the current context is not
187187
// ours.
188188
if err != nil {
189-
cmd := exec.CommandContext(ctx,"docker-classic", os.Args[1:]...)
189+
cmd := exec.CommandContext(ctx, "docker-classic", os.Args[1:]...)
190190
cmd.Stdin = os.Stdin
191191
cmd.Stdout = os.Stdout
192192
cmd.Stderr = os.Stderr

tests/e2e/e2e_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ package main
2929

3030
import (
3131
"fmt"
32-
. "github.com/onsi/gomega"
33-
"github.com/stretchr/testify/suite"
3432
"io/ioutil"
3533
"log"
3634
"os"
@@ -40,6 +38,9 @@ import (
4038
"testing"
4139
"time"
4240

41+
. "github.com/onsi/gomega"
42+
"github.com/stretchr/testify/suite"
43+
4344
"gotest.tools/golden"
4445

4546
. "github.com/docker/api/tests/framework"
@@ -91,7 +92,7 @@ func (s *E2eSuite) TestKillChildOnCancel() {
9192
RUN sleep 100`), 0644)).To(Succeed())
9293
shutdown := make(chan time.Time)
9394
errs := make(chan error)
94-
ctx := s.NewDockerCommand("build", "--no-cache", "-t", "test-sleep-image", ".").WithinDirectory(dir).WithTimeout(shutdown)
95+
ctx := s.NewDockerCommand("build", "--no-cache", "-t", "test-sleep-image", ".").WithinDirectory(dir).WithTimeout(shutdown)
9596
go func() {
9697
_, err := ctx.Exec()
9798
errs <- err

0 commit comments

Comments
 (0)