Step 7 – Start the Admin Node Manager Docker container

Use the docker run command to start the Admin Node Manager container. For example:

$ docker run -it -p 8090:8090 --name=anm --network=api-gateway-domain admin-node-manager:latest

This example performs the following:

  • Starts an Admin Node Manager container named anm from an image named admin-node-manager:latest. You must specify the name of the Admin Node Manager Docker image that you created in Step 6 – Create an Admin Node Manager Docker image.
  • Binds the default management port 8090 of the container to port 8090 on the host machine. This enables you to access the API Gateway Manager web UI on port 8090 of your host machine.

To run the container in the background, use the -d option, for example:

$ docker run -d -p 8090:8090 --name=anm --network=api-gateway-domain admin-node-manager:latest

Start a metrics-enabled Admin Node Manager container

The following example shows how to run a metrics-enabled Admin Node Manager container:

$ docker run -d -p 8090:8090 --name=anm --network=api-gateway-domain 
-v /tmp/events:/opt/Axway/apigateway/events
-e METRICS_DB_URL=jdbc:mysql://metricsdb:3306/metrics?useSSL=false 
-e METRICS_DB_USERNAME=root -e METRICS_DB_PASS=root01 
admin-node-manager:latest

This example performs the following:

  • Mounts the host directory /tmp/events (containing transaction event logs from API Gateways) inside the container.
  • Uses environment variables to specify connection details for the metrics database.

Related Links