LoginSignup
2
1

More than 5 years have passed since last update.

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?の解決策

Last updated at Posted at 2018-03-16

詰まったのでメモ。

docker起動中に、PCが強制終了してしまったところ以下エラーが発生しました。

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

言葉の通りなのですが、docker daemonが起動していません。

Docker quick start terminalで起動させましょう。

しかしもし起動させても以下メッセージが出る場合もあります。



                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/


Error getting IP address: ssh command error:
command : ip addr show
err     : exit status 255
output  :
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com

その場合は、以下コマンドでdefaultを削除。
その後再度Dcoker quick start terminalを起動させれば解決します。

docker-machine rm default
2
1
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
2
1