# Build the image (v3.10.1 is the default)
docker build -t v3.10.1 .
# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.1
# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'# Build the image
docker build -t v3.10.1-plugins-3.10.0 --build-arg PLUGIN_VERSION=v3.10.0 .
# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.1-plugins-3.10.0
# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'# Build the image
docker build -t v3.10.0-plugins-3.10.0 --build-arg CLI_VERSION=v3.10.0 --build-arg PLUGIN_VERSION=v3.10.0 .
# Run the container
docker run -d -p 10332:10332 --name neo-node v3.10.0-plugins-3.10.0
# Enter the container and test
docker exec -it neo-node bash
curl -X POST http://localhost:10332 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'Once inside the container, you can also use:
curl http://localhost:10332 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"getblockcount","params":[],"id":1}'This will return the current block count, confirming the CLI is running and responding to RPC calls.