PostList

2018년 12월 22일 토요일

Got permission denied while trying to connect to the Docker daemon socket at


Problem:

Note: 
The problem described here happened when I used "ubuntu" as a current user.
For installing Hyperledger Fabric on AWS, you'd better create a new user with sudo permission.


Can't access docker, because of a permission issue.

ubuntu@ip-172-31-35-67:~/fabric-dev-servers$ ./downloadFabric.sh
Development only script for Hyperledger Fabric control
Running 'downloadFabric.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=hyperledger%2Ffabric-peer&tag=1.2.1: dial unix /var/run/docker.sock: connect: permission denied

ubuntu@ip-172-31-35-67:~/fabric-dev-servers$ docker images

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/json: dial unix /var/run/docker.sock: connect: permission denied

Solution:
Try to use sudo

sudo ./downloadFabric.sh

Ref:
https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/

댓글 없음:

댓글 쓰기