1. 程式人生 > >ERROR: yaml.scanner.ScannerError: while scanning for the next token found character '\t' that cannot

ERROR: yaml.scanner.ScannerError: while scanning for the next token found character '\t' that cannot

fabric部署時報錯:

ERROR: yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "./docker-peer01.yaml", line 74, column 1

如圖:

我這裡的原因是docker-peer01.yaml中最前面用了tab,改成空格就好了。對yaml檔案格式要求嚴格。(如圖示紅的地方原來為tab,改為空格就好了。)