CA API Developer Portal: Containers hang on startup

Document ID : KB000102863
Last Modified Date : 20/06/2018
Show Technical Document Details
Issue:
When starting the API portal for the first time it is noticed that several containers hang or restart.

 
Resolution:
If you have had a prior failed deployment it is likely some data was persisted that is 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


docker stack rm portal 
docker stop $(docker ps -qa) 
docker rm $(docker ps -qa) 
docker volume rm $(docker volume ls -q)