Edited at

docker-composeのエラー

More than 1 year has passed since last update.

昨日、pyenvでpythonのバージョン変えてから(?)

docker-composeがぶっ壊れて動かなくなりました。動くまでのエラーと対処法のメモ。


エラー1

docker-compose up -d

・・・・・
docker Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`


対処法

docker for Mac→Preference→Security store Docker logins in macOS keychainのチェックOFF

Screen Shot 2018-04-23 at 18.33.10.png


エラー2

docker-compose up -d

Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in <module>
from compose.cli.main import main
File "/Library/Python/2.7/site-packages/compose/cli/main.py", line 22, in <module>
from ..bundle import get_image_digests
File "/Library/Python/2.7/site-packages/compose/bundle.py", line 14, in <module>
from .service import format_environment
File "/Library/Python/2.7/site-packages/compose/service.py", line 48, in <module>
from .parallel import parallel_execute
File "/Library/Python/2.7/site-packages/compose/parallel.py", line 13, in <module>
from six.moves import _thread as thread
ImportError: cannot import name _thread


対処法


Pythonのバージョン間の差異を解決するsixをインストール

sudo -H pip install -I six


pipでdocker-composeを再インストール

sudo pip uninstall docker-compose

sudo pip install -I docker-compose