There is no such feature as the NOSONAR comment for Docker. While it may look easy to implement, the fact that you can have instructions spread on multiple lines make it more complex to support than for Python for example.
The best option you have today to silence what is raised on Docker files is to go into the UI, and change the status. A modal will be displayed asking you to put a comment to justify why you want to close the finding.