Skip to content
\n

My question therefore is if there is a reason the file /var/lib/dpkg/status was not removed when minifying the image? Seems like it is throwing a lot of SBOM generators off.

\n

Cheers

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Normally /var/lib/dpkg/status would be removed.

\n

The only default case when it wouldn't removed is when the containers are designed to install debian packages at runtime. Some containers have entrypoints that bootstrap the container with extra components (installing additional packages, downloading new data files, etc). By default, Mint/DockerSlim will keep newly created files. If you install a new package in the entrypoint container logic everything in the install package flow will be kept as well. The --include-new flag controls this behavior. If you set it to false then anything that's not already in the container when it starts will not be kept.

\n

Another possible way to explain /var/lib/dpkg/status is the --include-path flag. It's possible ghcr.io/sbb-design-systems/sbb-angular/showcase:14.4.3 was created with the --include-path /var/lib/dpkg/status flag set to intentionally keep the debian package metadata, but this needs to be done intentionally by the user.

","upvoteCount":2,"url":"https://github.com/mintoolkit/mint/discussions/105#discussioncomment-12287806"}}}
Discussion options

You must be logged in to vote

Normally /var/lib/dpkg/status would be removed.

The only default case when it wouldn't removed is when the containers are designed to install debian packages at runtime. Some containers have entrypoints that bootstrap the container with extra components (installing additional packages, downloading new data files, etc). By default, Mint/DockerSlim will keep newly created files. If you install a new package in the entrypoint container logic everything in the install package flow will be kept as well. The --include-new flag controls this behavior. If you set it to false then anything that's not already in the container when it starts will not be kept.

Another possible way to explain /var/lib…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PinkSheep
Comment options

@kyubisation
Comment options

Answer selected by PinkSheep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants