When starting the API portal for the first time it is noticed that several containers hang or restart.
If you have had a prior failed deployment it is likely some data was persisted that will cause issues.
Providing there is not need for the persistent data you can safely rebuild the docker stack and remove the persistent volume.
WARNING: DO NOT REMOVE THE DOCKER VOLUME IF YOU HAVE DATA THAT YOU NEED TO KEEP
You can run the below commands to clean up the install
1. docker stack rm portal
2. docker stop $(docker ps -qa)
3. docker rm $(docker ps -qa)
The below command will remove the docker volume as noted above. This will remove persistent data. DO NOT run this command if you have data you wish to preserve, instead skip to step 5.
4. docker volume rm $(docker volume ls -q)
5. Re-start the portal by navigating to the install path (ie: /opt/apim-portal) and running the portal.sh script