@@ -100,6 +100,7 @@ fully configurable code path. Do not set the `NETWORK` environment variable.
100
100
101
101
To run a Cardano full node on mainnet with minimal configuration and defaults:
102
102
103
+ Cardano Node before 10.3.1:
103
104
``` bash
104
105
docker run --detach \
105
106
--name cardano-node \
@@ -111,6 +112,16 @@ docker run --detach \
111
112
112
113
** NOTE** The container paths for persist disks are different in this mode
113
114
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
+
114
125
The above maps port 3001 on the host to 3001 on the container, suitable
115
126
for use as a mainnet relay node. We use docker volumes for our persistent data
116
127
storage and IPC (interprocess communication) so they live beyond the lifetime
@@ -129,8 +140,8 @@ docker run --detach \
129
140
-e CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE=/opt/cardano/config/keys/node.cert \
130
141
-e CARDANO_SHELLEY_VRF_KEY=/opt/cardano/config/keys/vrf.skey \
131
142
-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 \
134
145
-p 3001:3001 \
135
146
-p 12798:12798 \
136
147
ghcr.io/blinklabs-io/cardano-node run
@@ -182,7 +193,7 @@ This behavior can be changed via the following environment variables:
182
193
- Use your own configuration file to modify the node behavior fully
183
194
- ` CARDANO_DATABASE_PATH `
184
195
- A directory which contains the ledger database files (default:
185
- ` /opt/cardano/ data ` )
196
+ ` /data/db ` )
186
197
- This is the location for persistent data storage for the ledger
187
198
- ` CARDANO_PORT `
188
199
- TCP port to bind for listening (default: ` 3001 ` )
@@ -191,11 +202,11 @@ This behavior can be changed via the following environment variables:
191
202
` -N2 -A64m -I0 -qg -qb --disable-delayed-os-memory-return ` )
192
203
- This allows tuning the node for specific use cases or resource contraints
193
204
- ` CARDANO_SOCKET_PATH `
194
- - UNIX socket path for listening (default: ` /opt/cardano/ ipc/socket ` )
205
+ - UNIX socket path for listening (default: ` /ipc/node. socket ` )
195
206
- This socket speaks Ouroboros NtC and is used by client software
196
207
- ` CARDANO_TOPOLOGY `
197
208
- Full path to the Cardano node topology (default:
198
- ` ${CARDANO_CONFIG_BASE}/mainnet- topology.json ` )
209
+ ` ${CARDANO_CONFIG_BASE}/mainnet/ topology.json ` )
199
210
200
211
#### Running a block producer
201
212
@@ -236,15 +247,15 @@ To run a Cardano CLI command, we use the `node-ipc` volume from our node.
236
247
237
248
``` bash
238
249
docker run --rm -ti \
239
- -v node-ipc:/opt/cardano/ ipc \
250
+ -v node-ipc:/ipc \
240
251
ghcr.io/blinklabs-io/cardano-node cli < command>
241
252
```
242
253
243
254
This can be added to a shell alias:
244
255
245
256
``` bash
246
257
alias cardano-cli=" docker run --rm -ti \
247
- -v node-ipc:/opt/cardano/ ipc \
258
+ -v node-ipc:/ipc \
248
259
ghcr.io/blinklabs-io/cardano-node cli"
249
260
```
250
261
0 commit comments