LoginSignup
11
11

More than 5 years have passed since last update.

dockerをupdateしたらdocker-composeでコンテナが起動できなくなった。

Last updated at Posted at 2018-03-28

普段使っているdockerを何気なくupdateしたら動かなくなった。

環境

  • Windows 10 Pro
  • Docker-CE Version 18.03.0-ce-win59 (16762)

エラー

> docker-compose.exe start
Traceback (most recent call last):
  File "docker-compose", line 6, in <module>
  File "compose\cli\main.py", line 71, in main
  File "compose\cli\main.py", line 124, in perform_command
  File "compose\cli\command.py", line 41, in project_from_options
  File "compose\cli\command.py", line 109, in get_project
  File "compose\config\config.py", line 283, in find
  File "compose\config\config.py", line 283, in <listcomp>
  File "compose\config\config.py", line 183, in from_filename
  File "compose\config\config.py", line 1434, in load_yaml
  File "site-packages\yaml\__init__.py", line 94, in safe_load
  File "site-packages\yaml\__init__.py", line 70, in load
  File "site-packages\yaml\loader.py", line 24, in __init__
  File "site-packages\yaml\reader.py", line 85, in __init__
  File "site-packages\yaml\reader.py", line 124, in determine_encoding
  File "site-packages\yaml\reader.py", line 178, in update_raw
UnicodeDecodeError: 'cp932' codec can't decode byte 0x83 in position 18: illegal multibyte sequence
[13176] Failed to execute script docker-compose

やったこと

  • 「Setting」→「Shared Drives」→Cドライブのチェックを外す→「Apply」
  • 「Setting」→「Shared Drives」→Cドライブのチェックを入れる→「Apply」
  • PC再起動
  • Docker起動
  • Docker Restart

・・・状況変わらず。

違う環境でdocker-compose.exe startしてみると

UnicodeDecodeError: 'cp932' codec can't decode byte 0x83 in position 11: illegal multibyte sequence
[7880] Failed to execute script docker-compose

あれ?positionが違う!

UnicodeDecodeError? cp932? docker-compose?

対処

docker-compose.ymlの文字コードをutf-8からsjisに変更

コメントとか日本語で書いているとなるようです。(多分)

# local環境
version: '2'
services:
  mysql:



※きちんと検証してはいません!

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11