Reputation: 331
I am trying to setup hyperledger fabric on Azure Kubernetes Service. For that I am following this article. I need to create directory like mkdir /usr/local/hyperledger
as per the instruction in the article. But I am getting the following error.
mkdir: cannot create directory ‘/usr/local/hyperledger’: Permission denied
Help me to fix this issue.
Upvotes: 0
Views: 4255
Reputation: 1051
It's likely that you are running the command as a non-root user. To gain root permissions for a single command, invoke the command with sudo
, e.g. sudo mkdir /usr/local/hyperledger
. I don't think this is the solution to your problem though.
You shouldn't need to run these steps manually if your target environment is AKS. You should be preparing a docker image to run in your cluster, rather than using shell commands to modify a VM/container.
The author of the article has provided a Dockerfile which you can use to build a docker image, or you can retrieve the pre-built image from Docker Hub: tsmatz/hyperledger-dev
.
Upvotes: 2