Docker TLS error on Mac

前端 未结 3 1352
别那么骄傲
别那么骄傲 2021-02-03 14:02

I ran docker images and got the following error:

FATA[0000] Get http:///var/run/docker.sock/v1.17/images/json:
dial unix /var/run/docker.sock: no su         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 14:42

    https://docs.docker.com/installation/mac/

    you need to do this once:

    boot2docker init
    

    then, everytime you reboot your mac you will need to run :

    boot2docker start
    

    That is the command that starts the docker daemon. But, on each shell you want to access it from you will need to run:

    $(boot2docker shellinit)
    

    Now you can use the docker client, like:

    docker run hello-world
    

提交回复
热议问题