执行docker-compose命令报错信息。

```bash

PS G:\laradock> docker-compose up -d nginx mysql php-fpm redis memcached

Traceback (most recent call last):

  File "c:\users\tang\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "C:\Users\tang\AppData\Local\Programs\Python\Python36\Scripts\docker-compose.exe\__main__.py", line 9, in <module>

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\cli\main.py", line 68, in main

    command()

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\cli\main.py", line 115, in perform_command

    project = project_from_options('.', options)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\cli\command.py", line 37, in project_from_options

    override_dir=options.get('--project-directory'),

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\cli\command.py", line 87, in get_project

    config_details = config.find(project_dir, config_path, environment, override_dir)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\config\config.py", line 254, in find

    [ConfigFile.from_filename(f) for f in filenames],

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\config\config.py", line 254, in <listcomp>

    [ConfigFile.from_filename(f) for f in filenames],

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\config\config.py", line 160, in from_filename

    return cls(filename, load_yaml(filename))

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\compose\config\config.py", line 1176, in load_yaml

    return yaml.safe_load(fh)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\__init__.py", line 94, in safe_load

    return load(stream, SafeLoader)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\__init__.py", line 70, in load

    loader = Loader(stream)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\loader.py", line 24, in __init__

    Reader.__init__(self, stream)

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\reader.py", line 85, in __init__

    self.determine_encoding()

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\reader.py", line 124, in determine_encoding

    self.update_raw()

  File "c:\users\tang\appdata\local\programs\python\python36\lib\site-packages\yaml\reader.py", line 178, in update_raw

    data = self.stream.read(size)

UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 2217: illegal multibyte sequence

```

昨晚折腾好久,以为是版本或者git提交后的原因,才导致出现gbk编码问题,昨晚重装了python、dcoker等几乎所有相关的环境。

今天想到yaml模版文件昨天上午加了中文注释,删了后不报错了。

昨天忽略后面报错信息了,`...\lib\site-packages\yaml\reader.py", line 85, in __init__`其实都说了ymal报错了吧。没想到啊,以后碰到问题一时解决不了还是放一放休息下换个思路在继续。