# To run a relay

## Prerequsites

Install docker

## Install nostr-rs-relay

sudo docker pull scsibug/nostr-rs-relay

## Run relay

sudo docker run -it -p 4100:8080 --mount src=$(pwd)/data,target=/usr/src/app/db,type=bind scsibug/nostr-rs-relay:latest

Reply to this note

Please Login to reply.

Discussion

Thank you very much, Melvin.

hey, Melvin. This is a response to latest command "sudo...": "Error response from daemon: invalid mount config for type "bind": bind source path does not exist:(my home directory)". ¿Any idea?

solved. Create directory /home..../data. Now the problem is: "ERROR r2d2: unable to open database file: /usr/src/app/db/nostr.db"

It´s working now. PWD solved and running. TY!