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

docker for macで、docker-syncをbuildしたときに発生したエラーを解決

Last updated at Posted at 2019-04-28

macを新しくしたので、docker周りのインストールを行っていたところ、docker-for-macのbuildしたときにエラーが出て、解決に時間がかかったので自分用メモとして残しておく。
ちゃんとエラー内容読めばわかる内容だった。

#エラー発生前のコマンド

$ docker-sync-stack start

##エラー内容

$ docker-sync-stack start
note:  You can also run docker-sync in the background with docker-sync start
          ok  Starting unison for sync sync-front-volume
Unable to find image 'eugenmayer/unison:2.51.2.1' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/eugenmayer/unison/manifests/2.51.2.1: unauthorized: incorrect username or password.
See 'docker run --help'.
/Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_strategy/unison.rb:190:in `start_container': Precopy failed (RuntimeError)
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_strategy/unison.rb:39:in `run'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_process.rb:85:in `run'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_manager.rb:111:in `block in run'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_manager.rb:110:in `each'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/lib/docker-sync/sync_manager.rb:110:in `run'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/tasks/stack/stack.thor:46:in `start'
        from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        from /Library/Ruby/Gems/2.3.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        from /Library/Ruby/Gems/2.3.0/gems/docker-sync-0.5.11/bin/docker-sync-stack:15:in `<top (required)>'
        from /usr/local/bin/docker-sync-stack:22:in `load'
        from /usr/local/bin/docker-sync-stack:22:in `<main>'

ちゃんと理由書かれてる。

unauthorized: incorrect username or password

#実行環境

$ ruby -v                                                                                                                                                 ~
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

$ docker -v                                                                                                                                               ~
Docker version 18.09.2, build 6247962

$ docker-compose -v                                                                                                                                       ~
docker-compose version 1.23.2, build 1110ad01

$ docker-sync -v                                                                                                                                          ~
0.5.11

#解決手法
docker for macのログインをGUIにてメールアドレスでログインしていたが、メールアドレスではなくusernameでログインするよう変更した

$ docker login

対話式でusernameとpasswordを求められるので、メールアドレスではなくusernameとパスワードを入力し、再度エラーの発生したコマンドを実行する。

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?