Map home folder to map docker volume to local storage

1.5k views Asked by At

Im a massive noob when it comes to backend dev-ops stuff, but I'm trying to setup a KMS provided by Tatum.io that let's you sign transactions with private keys. Everything seems straightforward except for this one step in their Github repo that mentions mapping the home folder so that the docker volume is mapped to locale storage. Only problem is, I'm not really sure how to go about it. Could anyone help me understand what to do? The Docker docs they link to are not helpful to me at all (too much info to know where to start).

1

There are 1 answers

2
jcragun On

The example command given in the docs already shows you how to do the volume mapping:

docker run -d --env-file .env -v $HOME:/root/.tatumrc tatumio/tatum-kms daemon

The docker volume is the -v $HOME:/root/.tatumrc flag provided to docker. It essentially maps the home directory on your host machine to a path in the container, so files will be available in both places. I say essentially, because I'm simplifying the details depending on how you're running Docker.