You can check whether your user is in the docker用户组, /var/run/docker.sock的访问权限只root和docker用户组, 所以你需要把自己的用户添加到dockergroup below,
Command: sudo gpasswd -a ${uesrname} docker
What is the version of ubuntu? It is recommended to install through the ubuntu entry on docker.com and select the installation steps corresponding to the correct version number.
Use env to see if there is any problem with your environment variable settings. Pay attention to whether sudo is used.
$ export DOCKER_TLS_VERIFY=1
$ export DOCKER_HOST=tcp://192.168.59.103:2376
$ export DOCKER_CERT_PATH=/Users/myusername/.boot2docker/certs/boot2docker-vm
. . Your Docker is not running.
You can check whether your user is in the
docker
用户组,/var/run/docker.sock
的访问权限只root
和docker
用户组, 所以你需要把自己的用户添加到docker
group below,Command: sudo gpasswd -a ${uesrname} docker
What is the version of ubuntu? It is recommended to install through the ubuntu entry on docker.com and select the installation steps corresponding to the correct version number.
The docker service must be started first
Run first
Start service
Use env to see if there is any problem with your environment variable settings. Pay attention to whether sudo is used.
$ export DOCKER_TLS_VERIFY=1
$ export DOCKER_HOST=tcp://192.168.59.103:2376
$ export DOCKER_CERT_PATH=/Users/myusername/.boot2docker/certs/boot2docker-vm
sudo docker search ubuntu