dockerfile-maven icon indicating copy to clipboard operation
dockerfile-maven copied to clipboard

cacheFrom does not work

Open lliuhaomin opened this issue 4 years ago • 2 comments

Is there any requirement for the docker version to use this plugin to build? Currently using 19.3.1 docker environment to build, cacheFrom does not work

lliuhaomin avatar Sep 06 '21 02:09 lliuhaomin

update BuildMojo.java file if (!cacheFromExistLocally.isEmpty()) { buildParameters.add(new DockerClient.BuildParam("cache-from", encodeBuildParam(cacheFromExistLocally))); }

if (!cacheFromExistLocally.isEmpty()) { buildParameters.add(new DockerClient.BuildParam("cachefrom", new Gson().toJson(cacheFromExistLocally).toString())); }

lliuhaomin avatar Sep 06 '21 08:09 lliuhaomin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 04:01 stale[bot]