SCOOPで導入したDockerでWebサーバ立てようとしたらエラー

2019/06/05プログラミング

dockerを学習しようとしてとりあえずWebサーバ立ち上げようとしてエラー

コマンドはこんな感じ

docker run -d -p 8080:80 --name webserver nginx

C:\Users\user\scoop\apps\docker\current\docker.exe: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/create?name=webserver: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
See 'C:\Users\user\scoop\apps\docker\current\docker.exe run –help’.

Dockerマシンを再作成

docker-machine rm default

About to remove default
WARNING: This action will delete both local reference and remote instance.
Are you sure? (y/n): y
Successfully removed default

docker-machine create default --driver virtualbox

参考

Docker for Windowsでのエラー
https://qiita.com/Y-Kanoh/items/180e73c47970ea9bf5bc