5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker-compose の ERROR: Windows named pipe error の対処

5
Last updated at Posted at 2018-05-22

環境: powershell 5.1, docker-machine.exe version 0.14.0, docker-compose version 1.21.2

問題

windows上でコンテナが起動しない(docker-composeが起動しない)

  1. docker-machine start でホストマシン( "default" )立ち上げ
  2. docker-compose up を実行すると、以下のエラーが発生する。
ERROR: Windows named pipe error: 指定されたファイルが見つかりません。 (code: 2)

解決方法

docker-machine start でホストマシンを立ち上げた後に、以下のコマンドを実行する。

docker-machine env default --shell powershell | Invoke-Expression

その後、 docker-compose up を実行する。

default は machine の名前 ( docker-machine ls で確認できる )

5
7
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
5
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?