0
0

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 3 years have passed since last update.

Windows HomeでDocker Toolboxを入れてdocker-compose build動かそうと思ったら。。。

Last updated at Posted at 2020-03-18

Windows HomeでDocker Toolboxを入れてdocker-compose build動かそうと思ったら以下のエラーが発生。

$ docker-compose build
nginx uses an image, skipping
db uses an image, skipping
Building php
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 127, in perform_command
  File "compose\cli\main.py", line 287, in build
  File "compose\project.py", line 386, in build
  File "compose\project.py", line 368, in build_service
  File "compose\service.py", line 1084, in build
  File "site-packages\docker\api\build.py", line 260, in build
  File "site-packages\docker\api\build.py", line 307, in _set_auth_headers
  File "site-packages\docker\auth.py", line 301, in get_all_credentials
  File "site-packages\docker\auth.py", line 287, in _get_store_instance
  File "site-packages\dockerpycreds\store.py", line 25, in __init__
dockerpycreds.errors.InitializationError: docker-credential-wincred not installed or not available in PATH
[14212] Failed to execute script docker-compose

golangをインストール

docker-credential-helpersを取得

go get github.com/docker/docker-credential-helpers

以下のように怒られるけど無視

can't load package: package github.com/docker/docker-credential-helpers: no Go files in C:\Users\XXXXX\go\src\github.com\docker\docker-credential-helpers

make.exeを取ってきて使えるようにして

cd C:\Users\XXXXX\go\src\github.com\docker\docker-credential-helpers
make wincred 

makeを実行したフォルダのbinフォルダに「docker-credential-wincred.exe」が作成されるので、パスが通っているフォルダに移動する。

※追記
コマンドプロントを管理者権限で開いてリンクを作成した。これはいるのか分からない。。。

mklink /D "c:\c" "c:/"

以上

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?