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

后端 未结 11 1013
轻奢々
轻奢々 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:20

    On my MAC when I start boot2docker-vm on the terminal using

    
    boot2docker start
    

    I see the following

    
    To connect the Docker client to the Docker daemon, please set:
        export DOCKER_CERT_PATH=
        export DOCKER_TLS_VERIFY=1
        export DOCKER_HOST=tcp://:2376
    

    After setting these environment variables I was able to run the build without the problem.

    Update [2016-04-28] If you are using a the recent versions of docker you can do

    eval $(docker-machine env) will set the environment

    (docker-machine env will print the export statements)

提交回复
热议问题