Built from source monero Docker images based on Alpine Linux
fixuid included
Docker Compose is included as a convenience to get you running immediately.
Note: Docker Compose can be installed as a plugin or a standalone command. Adjust your commands according to your install.
| Name | Default Value |
|---|---|
| UID | 1000 |
| GID | 1000 |
| TAG | latest |
| DATA_DIR | $HOME/.bitmonero |
UID="$(id -u)" GID="$(id -g)" docker compose run walletdocker compose down -vdocker run -dit --name monero \
--user="$(id -u):$(id -g)" \
--volume="$HOME/.bitmonero:/home/monero/.bitmonero" \
--publish='18080:18080' \
--publish='18081:18081' \
cornfeedhobo/monerodocker logs monerocurl -X POST http://localhost:18081/json_rpc \
-d '{"jsonrpc":"2.0","id":"test","method":"get_info"}' \
-H 'Content-Type: application/json' \
-H 'Accept:application/json'To run in the same container as the running daemon:
docker exec -it monero monero-wallet-cliTo run in a different container than the running daemon:
docker run --rm -it --link monero \
--user="$(id -u):$(id -g)" \
--volume="$HOME/.bitmonero:/home/monero/.bitmonero" \
cornfeedhobo/monero \
monero-wallet-cli \
--daemon-address="$MONERO_PORT_18081_TCP_ADDR:$MONERO_PORT_18081_TCP_PORT"Note: these are special environment variables filled in by the docker daemon and are specific to these examples.