Exiting the container after performing an operation
If you want to exit the container after performing the operation then follow below steps.
To perform a backup operation by running the API Gateway Utility container 1. Run the following command:
docker run -e apigw_elasticsearch_hosts=[host:port] [IMAGE] -c [COMMAND]
where,
-e. Variable to specify the API Data Store or Elasticsearch host and port.
-c. Variable to specify the backup command.
[COMMAND]. The required backup command. For information on possible backup operations and the commands to be used with the
apigatewayutil utility, see
Backup Operation.
For example,
docker run -e apigw_elasticsearch_hosts=daeyaix1bvt01.eur.ad.sag:9240 apigwutil -c list backup