website: use .ethereum directory for docker mapping

This commit is contained in:
lightclient 2025-08-20 14:33:04 -06:00 committed by GitHub
parent ef4f108fbf
commit 64679a74c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,7 @@ The image has the following ports automatically exposed:
**Note:** if you are running an Ethereum client inside a Docker container, you should mount a data volume as the client's data directory (located at `/root/.ethereum` inside the container) to ensure that downloaded data is preserved between restarts and/or container life-cycles. **Note:** if you are running an Ethereum client inside a Docker container, you should mount a data volume as the client's data directory (located at `/root/.ethereum` inside the container) to ensure that downloaded data is preserved between restarts and/or container life-cycles.
```sh ```sh
docker run -v $HOME/.geth:/root/.ethereum -it -p 30303:30303 ethereum/client-go docker run -v $HOME/.ethereum:/root/.ethereum -it -p 30303:30303 ethereum/client-go
``` ```
Updating Geth to the latest version simply requires stopping the container, pulling the latest version from Docker and running it: Updating Geth to the latest version simply requires stopping the container, pulling the latest version from Docker and running it: