<p>After checking the Ogmios documentation again I finally found it in /ipc/node.socket. (Post can be deleted or remain in case for future reference)</p>

CC BY-SA 4.0
2022-05-06T00:29:03.780Z
Including the snippet of the documentation would improve your answer and remember you can mark your own answer as accepted.
gRebel
CC BY-SA 4.0
2022-05-05T11:06:19.083Z
2022-05-05T11:06:19.083Z
et97
<p>A note for other people, when starting your node the <code>--socket-path</code> option will contain the path to the socket.</p>
<p>CARDANO_NODE_SOCKET_PATH should match this value.</p>
<pre><code>cardano-node run \
   --topology path/to/mainnet-topology.json \
   --database-path path/to/db \
   --socket-path path/to/db/node.socket \
   --host-addr x.x.x.x \
   --port 3001 \
   --config path/to/mainnet-config.json
</code></pre>

CC BY-SA 4.0
2022-05-16T07:36:51.700Z
2022-05-16T07:36:51.700Z
MC_Brisbane - JUST Pool
<p>Just create db folder inside your cardano-node, and pointing your script to that folder, the node.socket will be created once after you node is sync 100%</p>

CC BY-SA 4.0
2022-05-16T06:35:13.443Z
2022-05-16T06:35:13.443Z
Erwin Kurnia
<p>I would like to check the sync progress of the cardano node from within a cardano-node-ogmios docker container that I installed. When I open the docker CLI and I run the command <code>cardano-cli query tip --mainnet</code> I get that $CARDANO_NODE_SOCKET_PATH environment variable is not defined. I've tried locating /db/node.socket path, but I cannot seem to find it. Any clue as to where it may be located?</p>

CC BY-SA 4.0
2022-05-07T07:27:17.627Z
Just a side note, you can run cardano-tip outside of container, no need to login to container. I use it something like that from the host: `docker exec -ti test-producer /usr/local/bin/cardano-cli query tip --testnet-magic 1097911063`
os11k
<cardano-cli><cardano-node>
Where to locate the path to node.socket in order to set CARDANO_NODE_SOCKET_PATH env variable?
# Where to locate the path to node.socket in order to set CARDANO_NODE_SOCKET_PATH env variable?

(Asked by: username_0 on 2022-05-05)

I would like to check the sync progress of the cardano node from within a cardano-node-ogmios docker container that I installed. When I open the docker CLI and I run the command `cardano-cli query tip --mainnet` I get that $CARDANO\_NODE\_SOCKET\_PATH environment variable is not defined. I've tried locating /db/node.socket path, but I cannot seem to find it. Any clue as to where it may be located?

**Tags:** cardano-cli, cardano-node
> **Comments:**
> **username_1**: Just a side note, you can run cardano-tip outside of container, no need to login to container. I use it something like that from the host: `docker exec -ti test-producer /usr/local/bin/cardano-cli query tip --testnet-magic 1097911063`  

---

## 3 answers

### Answer by username_0 on 2022-05-05. Score: 1

After checking the Ogmios documentation again I finally found it in /ipc/node.socket. (Post can be deleted or remain in case for future reference)

> **Comments:**
> **username_2**: Including the snippet of the documentation would improve your answer and remember you can mark your own answer as accepted.  

---

### Answer by username_3 on 2022-05-16. Score: 1

A note for other people, when starting your node the --socket-path option will contain the path to the socket.
CARDANO_NODE_SOCKET_PATH should match this value.
cardano-node run \
   --topology path/to/mainnet-topology.json \
   --database-path path/to/db \
   --socket-path path/to/db/node.socket \
   --host-addr x.x.x.x \
   --port 3001 \
   --config path/to/mainnet-config.json


---

### Answer by username_4 on 2022-05-16. Score: 0

Just create db folder inside your cardano-node, and pointing your script to that folder, the node.socket will be created once after you node is sync 100%


---

