diff --git a/components/engine/api/client/build.go b/components/engine/api/client/build.go index 6dac4a3f39..f424e9b3f6 100644 --- a/components/engine/api/client/build.go +++ b/components/engine/api/client/build.go @@ -392,7 +392,7 @@ func getContextFromReader(r io.Reader, dockerfileName string) (absContextDir, re } if err := archive.Untar(buf, absContextDir, nil); err != nil { - return "", "", fmt.Errorf("unable to extract stdin to temporary context direcotry: %v", err) + return "", "", fmt.Errorf("unable to extract stdin to temporary context directory: %v", err) } return getDockerfileRelPath(absContextDir, dockerfileName) diff --git a/components/engine/integration-cli/docker_cli_cp_from_container_test.go b/components/engine/integration-cli/docker_cli_cp_from_container_test.go index 14536ce859..3dc8bab195 100644 --- a/components/engine/integration-cli/docker_cli_cp_from_container_test.go +++ b/components/engine/integration-cli/docker_cli_cp_from_container_test.go @@ -427,7 +427,7 @@ func (s *DockerSuite) TestCpFromCaseH(c *check.C) { } } -// I. SRC specifies a direcotry's contents only and DST exists as a file. This +// I. SRC specifies a directory's contents only and DST exists as a file. This // should cause an error as it is not possible to overwrite a file with a // directory. func (s *DockerSuite) TestCpFromCaseI(c *check.C) { diff --git a/components/engine/integration-cli/docker_cli_cp_to_container_test.go b/components/engine/integration-cli/docker_cli_cp_to_container_test.go index 4179553d18..a924c56144 100644 --- a/components/engine/integration-cli/docker_cli_cp_to_container_test.go +++ b/components/engine/integration-cli/docker_cli_cp_to_container_test.go @@ -484,7 +484,7 @@ func (s *DockerSuite) TestCpToCaseH(c *check.C) { } } -// I. SRC specifies a direcotry's contents only and DST exists as a file. This +// I. SRC specifies a directory's contents only and DST exists as a file. This // should cause an error as it is not possible to overwrite a file with a // directory. func (s *DockerSuite) TestCpToCaseI(c *check.C) { diff --git a/components/engine/pkg/archive/copy_test.go b/components/engine/pkg/archive/copy_test.go index d0cfa18bd6..dd0b323626 100644 --- a/components/engine/pkg/archive/copy_test.go +++ b/components/engine/pkg/archive/copy_test.go @@ -565,7 +565,7 @@ func TestCopyCaseH(t *testing.T) { } } -// I. SRC specifies a direcotry's contents only and DST exists as a file. This +// I. SRC specifies a directory's contents only and DST exists as a file. This // should cause an error as it is not possible to overwrite a file with a // directory. func TestCopyCaseI(t *testing.T) {