cli icon indicating copy to clipboard operation
cli copied to clipboard

Tendermint user in the Docker File

Open Jai-Anchorage opened this issue 3 years ago • 2 comments

When trying to scaffold the blockchain on my machine there are many permission issues stemming from the Dockerfile setting tendermint as the user. Therefore it is trying to access files that it's not allowed to access. The code snippet is taken directly from the Dockerfile

RUN useradd -ms /bin/bash tendermint
USER tendermint

Why is the user set as tendermint. Is this an issue that others trying to run on Docker have faced before. If so how did you overcome these issues.

Jai-Anchorage avatar Jun 14 '22 19:06 Jai-Anchorage

Even if it's not the perfect solution, using this custom user avoids having all the files and directories owned by root, when for instance you scaffold a chain.

Can you detail the kind of permission error you got ?

tbruyelle avatar Jul 04 '22 16:07 tbruyelle

We updated the Docker documentation to mitigate the permission errors, tell me if that helps. https://github.com/ignite/cli/pull/2622

tbruyelle avatar Jul 12 '22 10:07 tbruyelle

@Jai-Anchorage this issue should be resolved now. If the issue persists, please feel free to open a new issue!

aljo242 avatar Nov 28 '22 16:11 aljo242