Docker Compose can pass on these variables to the containers as build time variables (when building the images) and / or as run time variables (when running the containers). These companies are principally FANUC Corporation. I'm going to mark this thread 'solved' and start another thread concerning the 'disability' of the pendrive.
ide_write function makes it quite simple, refer to the function and you will fully understand the code. If you are using LBA48 and want to write to the LBA0 and LBA3 registers, you should write LBA3 to Register 3, then write LBA0 to Register 3.