Private Chain is important for data privacy, permission control, as well as testing dApps and smart contracts. A private chain is an isolated copy of public blockchain which would run on your local machine. In this article, we’ll be going through the basic steps to run NEO private chain on a local machine and receive some initial NEO and GAS tokens.
Step 1
To set up the NEO private network (often called private-net), we have to install and configure Docker in the local system. If you’re using Windows 10 Pro, you can download Docker directly. For an older version of Windows, you need to install and configure the Docker toolbox.
Once Docker gets installed, start and run the docker. Then, open a command line or PowerShell and write the following command
Docker –v
This will display the version of Docker that has been installed in your system.

Step 2
Pull the latest image using the following command.
docker pull cityofzion/neo-privatenet
Kindly note that the size of the image is a bit larger. So, it’ll take some time to download it.
Step 3
Once the image is pulled up, start the container using the command mentioned below.
docker run --rm -d --name neo-privatenet -p 20333-20336:20333-20336/tcp -p 30333-30336:30333-30336/tcp cityofzion/neo-privatenet
To check if the container is running or not, fire this command which will display the current running container(s).
docker ps

Step 4
Download the NEO-GUI wallet from here or use developer version (recommended for development) from here.
Step 5
Replace the content of the config.json file and protocol.json file with the following network details.
The updated config.json should look like this -


