user2099: I am running a Cardano node using docker, on the testnet, and now I need to check if it works properly and accepts cardano-cli arguments like querying and what not.
Is there a convenient way to do it?

user2099: The correct way to do that was to docker exec into the container, and cardano-cli works just fine from there.

user1307: To run cardano-cli in the container:
docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli
So to check the tip:
docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli query tip --mainnet
I put cardano-cli as an alias:
alias cardano-cli='docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli'. That way you can just invoke the cli as if the cardano-cli was in your PATH.

2099: <p>I am running a Cardano node using docker, on the testnet, and now I need to check if it works properly and accepts <code>cardano-cli</code> arguments like querying and what not.</p>
<p>Is there a convenient way to do it?</p>
 2099: <p>The correct way to do that was to <code>docker exec</code> into the container, and <code>cardano-cli</code> works just fine from there.</p>
 1307: <p>To run cardano-cli in the container:</p>
<p><code>docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli</code></p>
<p>So to check the tip:
<code>docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli query tip --mainnet</code></p>
<p>I put cardano-cli as an alias:
<code>alias cardano-cli='docker exec -it  -e CARDANO_NODE_SOCKET_PATH=/path/to/node.sock cardano-node cardano-cli'</code>. That way you can just invoke the cli as if the cardano-cli was in your PATH.</p>
