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

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

    To setup your environment and to keep it for the future sessions you can do:

    echo 'export DOCKER_HOST="tcp://$(boot2docker ip 2>/dev/null):2375";' >> ~/.bashrc
    

    Then: source ~/.bashrc

    And your environment will be setup in every session

提交回复
热议问题