skaffold build fails if the artifact context is a substring of Docker #4243
Labels
area/build
build/docker
kind/bug
Something isn't working
priority/p0
Highest priority. We are actively looking at delivering it.
Expected behavior
When I run skaffold build --filename skaffold.yaml, build should pass.
Actual behavior
Getting the below error. It seems skaffold is looking for the Dockerfile at the wrong location (in the root folder as opposed to ${workspaceFolder}/Dock.
error checking cache, caching may not work as expected:
getting hash for artifact gcr.io/sujit-project/nodejs-cloud-run-hello-world-13:
getting dependencies for "gcr.io/sujit-project/nodejs-cloud-run-hello-world-13":
opening dockerfile "/Users/sujitr/cloudcode-projects/nodejs-cloud-run-hello-world-13/Dockerfile":
open /Users/sujitr/cloudcode-projects/nodejs-cloud-run-hello-world-13/Dockerfile: no such file or directory" ,
time="2020-05-21T11:05:48-07:00" level=fatal
msg="build failed: building [gcr.io/sujit-project/nodejs-cloud-run-hello-world-13]:
build artifact: docker build: error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/build?buildargs=null&cachefrom=null&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=null&memory=0&memswap=0&networkmode=&rm=0&shmsize=0&t=gcr.io%2Fsujit-project%2Fnodejs-cloud-run-hello-world-13%3Alatest&target=&ulimits=null&version=":
creating docker context:
getting relative tar paths:
opening dockerfile "/Users/sujitr/cloudcode-projects/nodejs-cloud-run-hello-world-13/Dockerfile":
open /Users/sujitr/cloudcode-projects/nodejs-cloud-run-hello-world-13/Dockerfile: no such file or directory"
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: