error: error converting YAML to JSON: yaml: line 15: did not find expected key

问题描述:

[debug] error converting YAML to JSON: yaml: line 72: did not find expected ‘-’ indicator

解决:
由于yaml文件列表对其不统一造成的,例如:

# 格式1
ports:
  - port: 2019
# 格式2
ports:
- port: 2019

总结:

检查是否是一种对其格式
yaml文件格式要对其,同一级别的对象要放在同一列,几个空格不重要,不用有tab

你可能感兴趣的:(error: error converting YAML to JSON: yaml: line 15: did not find expected key)