LoginSignup
11
11

More than 5 years have passed since last update.

【win7+DockerToolbox】docker-compose upできなくなる問題

Posted at

環境

  • Windows 7
  • DockerToolbox
    • docker-compose 1.9.0
    • docker 1.12.5
    • VirtualBox 5.1.10

問題発生

laradockでdocker-compose upできなくなった!

原因

docker-composeのCHANGE LOGを参照したところ、下記の記述がありました。

Breaking changes

When using Compose with Docker Toolbox/Machine on Windows, volume paths are no longer converted from C:\Users to /c/Users-style by default. To re-enable this conversion so that your volumes keep working, set the environment variable COMPOSE_CONVERT_WINDOWS_PATHS=1. Users of Docker for Windows are not affected and do not need to set the variable.

WindowsでDocker Toolbox / Machineを使用する場合は
**環境変数COMPOSE_CONVERT_WINDOWS_PATHS = 1を設定します** 
Docker for Windowsのユーザーは影響を受けず、変数を設定する必要はありません。

大雑把な意訳ですが、そういうことのようです。

解決方法

ということで、
コントロールパネル > システムとセキュリティ > システム > システムの詳細設定 > 環境変数 > 新規 で環境変数を設定する

変数名:COMPOSE_CONVERT_WINDOWS_PATHS
変数値:1

結果

無事に docker-compose up できました!

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