Skip to content

Built from source monero Docker images based on Alpine Linux

License

Notifications You must be signed in to change notification settings

cornfeedhobo/docker-monero

Repository files navigation

docker-monero

Docker Stars Docker Pulls

Built from source monero Docker images based on Alpine Linux

fixuid included

Docker Compose

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.

Supported environment variables

Name Default Value
UID 1000
GID 1000
TAG latest
DATA_DIR $HOME/.bitmonero

Launch wallet while daemon syncs in the background

UID="$(id -u)" GID="$(id -g)" docker compose run wallet

Destroy everything

docker compose down -v

Docker

Running the Daemon

docker run -dit --name monero \
  --user="$(id -u):$(id -g)" \
  --volume="$HOME/.bitmonero:/home/monero/.bitmonero" \
  --publish='18080:18080' \
  --publish='18081:18081' \
  cornfeedhobo/monero

Checking the daemon status

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'

Using the wallet

Docker exec

To run in the same container as the running daemon:

docker exec -it monero monero-wallet-cli

Isolated container

To 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.

Is it any good?

Yes

About

Built from source monero Docker images based on Alpine Linux

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •