-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.11 Docker image does not run with non-default Linux UIDs and size has increased to 4.13 GB from 2.3 GB #3711
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
This is because of #3576 which changed the affected lines. |
@pierrehilbert @cmacknz I believe this should be marked as a high severity issue and fixed asap. |
Yes we should fix this, this is because of the additional There is a good explanation of what is happening in https://medium.com/@mmornati/docker-images-and-files-chown-40d2f7248fcc
|
We should probably rearrange the order of creation of the user, switch to such user and copy the files once |
also, perhaps we can copy and change the ownership at the same time. If the user is already created when we copy, it should be an easy fix (at least I think so, I haven't checked the docs though) |
This has been reverted in 8.11 #3712 and will be reverted in main shortly |
This comment was marked as off-topic.
This comment was marked as off-topic.
This problem is no longer present in 8.11.1, but we fixed it by reverting the fix for #82 which we need to bring back but without this bug. That is why this issue is still open. |
The change from #3576 has unintentionally doubled the size of our Docker image but more importantly is a breaking change for users that deploy agent with non-standard UID or GIDs. This is common in ECE deployments, if an ECE user has ECE installed with a non-standard (non-1000) UID/GID the agent and APM won't boot up.
Our Docker image size in 8.11 has increased 4.13 GB, which appears to be because of an additional Docker layer touching all files in the file system.
Using https://github.com/GoogleContainerTools/container-diff shows the actual container size has barely changed:
The reason for the increase is revealed looking at the layer history:
The biggest difference in 8.11 is this line which was kBs in 8.10:
The text was updated successfully, but these errors were encountered: