Built from source monero Docker images based on Alpine Linux
UID="$(id -u)" GID="$(id -g)" docker compose run wallet
docker compose down
docker run -dit --name monero \
-v $HOME/.bitmonero:/root/.bitmonero \
-p 18080:18080 -p 18081:18081 \
--user="$(id -u):$(id -g)" \
cornfeedhobo/monero
docker logs monero
curl -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"
docker exec -it monero monero-wallet-cli --wallet-file=wallet
docker run --rm -it --link monero \
-v $HOME/.bitmonero:/root/.bitmonero \
--user="$(id -u):$(id -g)" \
cornfeedhobo/monero \
monero-wallet-cli \
--wallet-file=wallet \
--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.