`apk del` now downloads packages cache
The behavior of apk del
has changed so it now automatically downloads
packages cache and so the pattern used in many Dockerfiles
(apk add --no-cache gcc && ... && apk del gcc
) now causes unnecessary
packages cache to be included in the final image:
https://github.com/frol/docker-alpine-glibc/issues/22
Should I update all my Dockerfiles to use apk del --no-cache
instead
of apk del
?
(from redmine: issue id 9063, created on 2018-07-07, closed on 2018-09-10)
- Changesets:
- Revision e1a05c74 by Timo Teräs on 2018-07-18T10:29:13Z:
prevent automatic repository index update for 'apk del'
ref #9063
- Revision 4df74a61 by Natanael Copa on 2018-08-17T13:22:41Z:
main/apk-tools: don't update index on delete
backport from upstream
fixes #9063
(cherry picked from commit 09b110fc99a36f12c0b49e6029a231a231ce920d)
- Revision b71a30c1 by Natanael Copa on 2018-09-07T14:05:54Z:
main/apk-tools: don't update index on delete
backport from upstream
fixes #9063
(cherry picked from commit 09b110fc99a36f12c0b49e6029a231a231ce920d)