I’m working with Docker images across different architectures (x86_64 and ARM). I need to change the extended attributes (xattrs) of some exacutable files within these Docker images and save these changes when I dont know what each image supports.
I am familiar with basic Docker operations like building, running, and committing containers. However, I am unsure how to handle extended attributes specifically and ensure compatibility across different architectures. Additionally, I can’t just open the Docker container, change the extended attributes, and commit these changes because I am uncertain about which commands or scripts (such as Python scripts or attr commands) are supported within the container.
Could someone provide a detailed method or best practices to achieve this? Any example commands or scripts that can be used inside the container to handle extended attributes would be greatly appreciated!
I have tried to run a the docker with bash but some dockers do not support the attr commands.
I have tried as well to create a python script which did not work as well as other dockers did not support the python script.
What else can I do?
Yoni Ladijensky is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.