コンテンツにスキップ

cardano-node

このコンテンツはまだ日本語に翻訳されていません。

Set NETWORK for the managed path, or omit it and invoke run for full control. Managed values are mainnet, preview, preprod, and sanchonet.

Terminal window
docker run --detach --name cardano-node \
-v node-data:/data/db -v node-ipc:/ipc \
-e NETWORK=preprod -p 3001:3001 \
ghcr.io/blinklabs-io/cardano-node:latest

An empty preprod or mainnet database can be bootstrapped from a Mithril snapshot. Keep /data/db persistent and set RESTORE_SNAPSHOT=false to disable this.

VariableDefaultMeaning
CARDANO_NETWORKmainnetNetwork directory in configurable run mode.
CARDANO_CONFIG_BASE/opt/cardano/configBase directory for bundled config.
CARDANO_CONFIG${CARDANO_CONFIG_BASE}/mainnet/config.jsonNode config path.
CARDANO_TOPOLOGY${CARDANO_CONFIG_BASE}/mainnet/topology.jsonTopology path.
CARDANO_DATABASE_PATH/data/dbPersistent ledger database.
CARDANO_SOCKET_PATH/ipc/node.socketOuroboros IPC socket.
CARDANO_BIND_ADDR / CARDANO_PORT0.0.0.0 / 3001Network bind address and port.
CARDANO_LOG_DIR/opt/cardano/logsLog directory.
CARDANO_RTS_OPTS-N2 -A64m -I0 -qg -qb --disable-delayed-os-memory-returnHaskell runtime options.
CARDANO_BLOCK_PRODUCERfalseSet true to run as a block producer.
CARDANO_SHELLEY_KES_KEY${CARDANO_CONFIG_BASE}/keys/kes.skeyKES key path.
CARDANO_SHELLEY_VRF_KEY${CARDANO_CONFIG_BASE}/keys/vrf.skeyVRF key path.
CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE${CARDANO_CONFIG_BASE}/keys/node.certOperational certificate path.
START_AS_NON_PRODUCINGfalseStart a producer without forging; control with SIGHUP.
RESTORE_SNAPSHOTtrueEnable Mithril snapshot bootstrap.
AGGREGATOR_ENDPOINT / SNAPSHOT_DIGESTnetwork URL / latestMithril endpoint and snapshot selection.
GENESIS_VERIFICATION_KEY / ANCILLARY_VERIFICATION_KEYbundled filesMithril verification keys.
SOCAT_PORT0Optional TCP-to-IPC forwarding port.
DEBUGunsetEnable shell tracing when non-empty.

The image also includes cardano-cli, mithril-client, mithril-signer, nview, and txtop. Mount signing keys read-only; never bake them into an image layer.

Source repository · Upstream node