EspressoSystems / espresso-sequencer

102 stars 69 forks source link

[Docker] Non-root user #2030

Closed rob-maron closed 1 month ago

rob-maron commented 2 months ago

Several operators have had issues overriding the default user in docker-compose.yaml when using a docker container. The main error is message: "Permission denied", either from trying to save the config file or related FS data. Even when changing the storage path to somewhere accessible to that user via ESPRESSO_SEQUENCER_STORAGE_PATH, we are still seeing this issue

sveitser commented 1 month ago

tide-disco was trying to write to $HOME at startup:

rob-maron commented 1 month ago

We've since made the public directory a function of /tmp and a random number: https://github.com/EspressoSystems/tide-disco/pull/239/files

Pre-this-change, you can fix this by building a Docker image on top:

FROM ghcr.io/espressosystems/espresso-sequencer/sequencer:VERSION

RUN useradd -m my_new_user