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
The culprit here is the /var/log/lastlog file. It has increased in size from 30kb to 19mb. /var/log/faillog has also increased in size from 3.3kb to 2.1mb. This requires some more investigation.
The text was updated successfully, but these errors were encountered:
lbussell
changed the title
Adding non-root user in jammy issues results in size increase
Adding non-root user in jammy issues results in image size increase
May 2, 2023
So this actually happens because of #4476. /var/lib/lastlog stores user login data indexed by UID. So when we increased the UID we inadvertently made this file really big. The solution is to run adduser with the -l option which omits these log files. PR incoming for that.
See #4587. I investigated the difference between the two images:
mcr.microsoft.com/dotnet/nightly/runtime-deps@sha256:24cc8445fa87fb3771d40628f6745b3988f425dcd3d6fb80a2384305ae7c536e
(new)mcr.microsoft.com/dotnet/nightly/runtime-deps@sha256:1dd42bff18ccd210bea44f481ee3b49db9cea509e7b7ff2a2e2b3e5aff3a1ac3
(old)The culprit here is the
/var/log/lastlog
file. It has increased in size from 30kb to 19mb./var/log/faillog
has also increased in size from 3.3kb to 2.1mb. This requires some more investigation.The text was updated successfully, but these errors were encountered: