README: reorganize and harden Docker monerod instructions

This commit is contained in:
selsta
2026-06-26 19:40:02 +02:00
parent 4320bdf590
commit 8fb41e9009
+13 -13
View File
@@ -507,6 +507,19 @@ For more information, please check out Trezor [src/device_trezor/README.md](src/
See [contrib/guix/README.md](contrib/guix/README.md).
### Building and running monerod with Docker
```bash
# Build image
docker build -t monerod .
# Create a directory on the host for the blockchain
mkdir -p /path/to/bitmonero
# Run it
docker run -d --user $(id -u):$(id -g) -v /path/to/bitmonero:/.bitmonero -p 127.0.0.1:18080:18080 -p 127.0.0.1:18081:18081 monerod
```
## Installing Monero from a package
**DISCLAIMER: These packages are not part of this repository or maintained by this project's contributors, and as such, do not go through the same review process to ensure their trustworthiness and security.**
@@ -560,19 +573,6 @@ Packages are available for
brew install monero
```
* Docker
```bash
# Build image
docker build -t monerod .
# Create a directory on the host for the blockchain
mkdir -p /path/to/bitmonero
# Run it
docker run -d --user $(id -u):$(id -g) -v /path/to/bitmonero:/.bitmonero -p 18080:18080 -p 18081:18081 monerod
```
Packaging for your favorite distribution would be a welcome contribution!
## Running monerod