docker-maven
docker-maven copied to clipboard
apt update no longer works after latest updates
Prior to May 30, everything was fine in our extensions of the maven images (3.8.5-eclipse-temurin-11 specifically), but as of the latest updates (id 7fc2f17ef11d worked, but the 7278ed17f460 does not).
Specifically, the following fails on apt update in a Dockerfile using maven:3.8.5-eclipse-temurin-11 as the FROM.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
This is likely related to an update of the base images, as this looks similar to this issue. I also see that my previous builds updated from focal, and now it updates from jammy. So on the same tag, the base image changed from Ubuntu 20 to 22, which surprised me.
Looks the same as #281
The labels track upstream labels, so when they change distro and this image is rebuilt it gets updated
Yes, this is similar to #281. I can confirm that using docker engine 20.10.15, the problem goes away. (It was failing for us on Bitbucket Pipelines - but, via very efficient support from Bitbucket, they updated the docker engine to 20.10.15 and now our builds pass on the jammy-based images)