You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to start using the cache-from feature, but I noticed that no matter what I was doing, COPY commands in my Dockerfile were always missing the cache. I eventually realized that it has to do with the version of the docker client that built the image I'm using in cache-from.
I'm not sure, but you can set the API version that the client sends to the server with the DOCKER_API_VERSION environment variable. go-dockerclient supports the same variable. Maybe that will work?
Hi,
I wanted to start using the cache-from feature, but I noticed that no matter what I was doing, COPY commands in my Dockerfile were always missing the cache. I eventually realized that it has to do with the version of the docker client that built the image I'm using in cache-from.
If I run:
I get a cache miss on COPY instructions. If I downgrade the docker client to
and start over, caching starts working correctly. I tried 17.12.0 and up, and those all have the problem.
Would this require the go-dockerclient library to support a higher client version? I don't know if something changed with the way hashes are computed.
The text was updated successfully, but these errors were encountered: