Skip to content

Instantly share code, notes, and snippets.

@catrielmuller
Created April 14, 2022 18:44
Show Gist options
  • Save catrielmuller/2a263a7592b34a6f780ea00720076161 to your computer and use it in GitHub Desktop.
Save catrielmuller/2a263a7592b34a6f780ea00720076161 to your computer and use it in GitHub Desktop.
Cardano Nodes ARM

/home/ubuntu/cardano/data /home/ubuntu/cardano/ipc

MAINNET

docker run --detach
--name=mainnet
-p 3001:3001
-e CARDANO_NETWORK=mainnet
-v /home/ubuntu/cardano/mainnet/data:/opt/cardano/data
-v /home/ubuntu/cardano/mainnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 run

docker logs -f mainnet

docker exec -it mainnet gLiveView

alias cardano-cli="docker run -it --rm
-v /home/ubuntu/cardano/mainnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 cardano-cli"

cardano-cli query tip --mainnet

docker run -it --rm
-v /home/ubuntu/cardano/mainnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 cardano-cli query tip --mainnet

TESTNET

docker run --detach
--name=testnet
-p 3002:3001
-e CARDANO_NETWORK=testnet
-v /home/ubuntu/cardano/testnet/data:/opt/cardano/data
-v /home/ubuntu/cardano/testnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 run

docker logs -f testnet

docker exec -it testnet gLiveView

alias cardano-cli="docker run -it --rm
-v /home/ubuntu/cardano/testnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 cardano-cli"

cardano-cli query tip --mainnet

docker run -it --rm
-v /home/ubuntu/cardano/testnet/ipc:/opt/cardano/ipc
--platform=linux/arm64/v8
nessusio/cardano-node:1.30.1 cardano-cli query tip --testnet-magic 1097911063

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment