Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

windows - Docker - failed to compute cache key: not found - runs fine in Visual Studio

I've generated a Dockerfile with Visual?Studio. It runs in Visual?Studio just fine and now I'm trying to build it from Windows itself (docker build ., and I tried many combinations). Yet I get the following error:

Error code

When I change copy to ./client.csproj it does continue and then I get:

Second error with changed copy path

What am I doing wrong? I changed Docker Linux to Windows, changed WSL, and restarted everything.

Dockerfile client

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Check your .dockerignore file. Possible it ignores needed files for copy command and you get failed to compute cache key error.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...