Cannot locate specified Dockerfile: Dockerfile

307 views
Skip to first unread message

st...@payr.no

unread,
Apr 27, 2018, 7:27:51 AM4/27/18
to skaffold-users
Hi,
I am trying to run skaffold 0.3.0 on a project using windows 10.
I get the following error message:

Starting build...
Sending build context to Docker daemon  1.024kB
[31mERRO [0m[0001] run: running skaffold steps: build: build step: running build: docker build: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile

When a collegue clones the same repo and runs the same command on his Linux it works fine.

I have the following files in a directory:

  1. Dockerfile
  2. skaffold.yaml
  3. k8s/deployment.yaml

My Dockerfile is very simple:

FROM scratch
ADD bin/helloworld /helloworld
CMD ["/helloworld"]

My skaffold.yaml is:

apiVersion: skaffold/v1alpha1
kind: Config
build:
  context: .
  dockerfile: Dockerfile
  artifacts:
  - imageName: test
    workspace: .
  local: {}
deploy:
  kubectl:
    manifests:
      - k8s/*
Reply all
Reply to author
Forward
0 new messages