How to override hosts files from a docker instance with /etc/rc.local on debian 11/ 12 or ubuntu variants

Create a file with the following content: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will “exit 0” on success or any other…