Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This user guide explains how to launch the pnc-simulator and initialize it with administrative APIs.

Step 1. Fetch simulator docker image

First, pull down the simulator image from docker hub.

Code Block
docker pull dzhanghuawei/pncsimulator:1.0.5-SNAPSHOT

Step 2. Launch the simulator container(s)

After compiling the pnc-simulator image locally or fetching the docker image from remote registry, execute the command below to start the container:

Code Block
docker run –p 18181:8181 –d –name pncsimu-18181 –t pncsimudzhanghuawei/pncsimulator:1.0.5-SNAPSHOT

It should be noted that, we redirect the request from host:18181 to container:8181. You can configure whatever port, mapping to container:8181 at your discretion.

...

Code Block
docker container ps –a | grep pncsimu

Step

...

3. Initialize the simulator

The simulator offers a set of administrative APIs which are designed for initialization and management purposes.

...