How to clean the Portal Docker Stack after a failed installation

Document ID : KB000072691
Last Modified Date : 08/03/2018
Show Technical Document Details
Introduction:
There may be a scenario where you run into an problem installing the CA API Developer Portal 4.2. This document intends to outline the steps required to clean up the installation and allow you to start from scratch without the need to redeploy the CA provided OVA.
Instructions:
Establish an SSH session with the Portal OVA and run the following commands from with elevated permissions:
  1. docker stack rm portal
  2. Wait a few minutes, and to be sure everything is shut down run docker rm $(docker ps -qa) 
  3. docker volume rm $(docker volume ls -q)
  4. Rerun ./config.sh or portal.sh
Additional Information:
Note: In Step 3, running the "docker volume rm" command will remove the volumes created by Docker during the initial install. This removes any persistent data saved to those volumes, including any customizations etc.