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

后端 未结 6 1541
渐次进展
渐次进展 2020-12-30 07:30

Problem: I am trying to run docker inside vagrant, my Vagrantfile contains following:-

  config.vm.provision \"docker\" do |d|
     d.run \"ubuntu\",
                


        
6条回答
  •  失恋的感觉
    2020-12-30 07:48

    i've gotten the same error response. when i checkout the daemon.json file, and i found that

    {
         "registry-mirrors": ["http://hub-mirror.c.163.com"]
         "graph": "/etc/docker/mirror"
    }
    

    as you can see, i missed "," so i corrected it so simple. how careless i was!

    {
         "registry-mirrors": ["http://hub-mirror.c.163.com"],
         "graph": "/etc/docker/mirror"
    }
    

    sometimes you need check your code carefully

提交回复
热议问题