ERROR: yaml.scanner.ScannerError: while scanning for the next token found character '\t' that cannot start any token error in docker-compose.override.yml

Reason:

I made a change to my docker override file using notepad and received the following error on compose up:


It was interesting to find that the concerned line had a tab  at start of line and when I opened in notepad++ it showed in red, I copied over a previous line and made the change to the arg, the red highlight was gone! I also ensured that there is no trailing space in the line!


ERROR: yaml.scanner.ScannerError: while scanning for the next token

found character '\t' that cannot start any token

  in ".\docker-compose.override.yml", line 110, column 1

C:\Sitecore.Demo.Edge\up.ps1 : Container build failed, see errors above.

At line:1 char:1

+ .\up.ps1

+ ~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,up.ps1

Comments