You can even add some code to check the string output and ensure It truly is matching Whatever you hope before you do the regex swap. I bumped into this issue utilizing docker Make. What is your docker version? Upgrading to the most recent Edition assisted me fix The problem! https://studioapartmentsyamunaexpressway.blogspot.com/