docker error: /var/run/docker.sock: no such file or directory

后端 未结 11 1032
轻奢々
轻奢々 2020-12-07 14:52

I am new to docker. I have a shell script that loads data into impala and I want a docker file that runs builds an image and run the container. I am on mac, installed boot2d

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 15:33

    For boot2docker on Windows, after seeing:

    FATA[0000] Get http:///var/run/docker.sock/v1.18/version: 
    dial unix /var/run/docker.sock: no such file or directory.  
    Are you trying to connect to a TLS-enabled daemon without TLS?
    

    All I did was:

    boot2docker start
    boot2docker shellinit
    

    That generated:

    export DOCKER_CERT_PATH=C:\Users\vonc\.boot2docker\certs\boot2docker-vm
    export DOCKER_TLS_VERIFY=1
    export DOCKER_HOST=tcp://192.168.59.103:2376
    

    Finally:

    boot2docker ssh
    

    And docker works again

提交回复
热议问题