Reputation: 1
Tried to get Hyperledgerfabric v2.x with sudo.
Prerequisities completed. docker demon is running. able to get hello image from docker
Pull Hyperledger Fabric docker images
FABRIC_IMAGES: peer orderer ccenv tools baseos ===> Pulling fabric Images ====> hyperledger/fabric-peer:2.3.2 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.24/images/create?fromImage=hyperledger%2Ffabric-peer&tag=2.3.2: dial unix /var/run/docker.sock: connect: permission denied
Please advise.
Upvotes: 0
Views: 742
Reputation: 177
First, install the docker and start the docker using the following command. then give a docker user permissions.
sudo service docker start
sudo usermod -aG docker $USER
reboot or start new terminal
Upvotes: 1