@@ -100,6 +100,7 @@ fully configurable code path. Do not set the `NETWORK` environment variable.
100100
101101To run a Cardano full node on mainnet with minimal configuration and defaults:
102102
103+ Cardano Node before 10.3.1:
103104``` bash
104105docker run --detach \
105106 --name cardano-node \
@@ -111,6 +112,16 @@ docker run --detach \
111112
112113** NOTE** The container paths for persist disks are different in this mode
113114
115+ Cardano Node 10.3.1 and above:
116+ ``` bash
117+ docker run --detach \
118+ --name cardano-node \
119+ -v node-data:/data/db \
120+ -v node-ipc:/ipc \
121+ -p 3001:3001 \
122+ ghcr.io/blinklabs-io/cardano-node run
123+ ```
124+
114125The above maps port 3001 on the host to 3001 on the container, suitable
115126for use as a mainnet relay node. We use docker volumes for our persistent data
116127storage and IPC (interprocess communication) so they live beyond the lifetime
@@ -129,8 +140,8 @@ docker run --detach \
129140 -e CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE=/opt/cardano/config/keys/node.cert \
130141 -e CARDANO_SHELLEY_VRF_KEY=/opt/cardano/config/keys/vrf.skey \
131142 -v /src/cardano/node-keys:/opt/cardano/config/keys \
132- -v /srv/cardano/node-db:/opt/cardano/ data \
133- -v /srv/cardano/node-ipc:/opt/cardano/ ipc \
143+ -v /srv/cardano/node-db:/data/db \
144+ -v /srv/cardano/node-ipc:/ipc \
134145 -p 3001:3001 \
135146 -p 12798:12798 \
136147 ghcr.io/blinklabs-io/cardano-node run
@@ -182,7 +193,7 @@ This behavior can be changed via the following environment variables:
182193 - Use your own configuration file to modify the node behavior fully
183194- ` CARDANO_DATABASE_PATH `
184195 - A directory which contains the ledger database files (default:
185- ` /opt/cardano/ data ` )
196+ ` /data/db ` )
186197 - This is the location for persistent data storage for the ledger
187198- ` CARDANO_PORT `
188199 - TCP port to bind for listening (default: ` 3001 ` )
@@ -191,11 +202,11 @@ This behavior can be changed via the following environment variables:
191202 ` -N2 -A64m -I0 -qg -qb --disable-delayed-os-memory-return ` )
192203 - This allows tuning the node for specific use cases or resource contraints
193204- ` CARDANO_SOCKET_PATH `
194- - UNIX socket path for listening (default: ` /opt/cardano/ ipc/socket ` )
205+ - UNIX socket path for listening (default: ` /ipc/node. socket ` )
195206 - This socket speaks Ouroboros NtC and is used by client software
196207- ` CARDANO_TOPOLOGY `
197208 - Full path to the Cardano node topology (default:
198- ` ${CARDANO_CONFIG_BASE}/mainnet- topology.json ` )
209+ ` ${CARDANO_CONFIG_BASE}/mainnet/ topology.json ` )
199210
200211#### Running a block producer
201212
@@ -236,15 +247,15 @@ To run a Cardano CLI command, we use the `node-ipc` volume from our node.
236247
237248``` bash
238249docker run --rm -ti \
239- -v node-ipc:/opt/cardano/ ipc \
250+ -v node-ipc:/ipc \
240251 ghcr.io/blinklabs-io/cardano-node cli < command>
241252```
242253
243254This can be added to a shell alias:
244255
245256``` bash
246257alias cardano-cli=" docker run --rm -ti \
247- -v node-ipc:/opt/cardano/ ipc \
258+ -v node-ipc:/ipc \
248259 ghcr.io/blinklabs-io/cardano-node cli"
249260```
250261
0 commit comments