To remove Arbitrator, follow the instructions below:
- Stop all running containers.
cd /opt/manifests/docker-compose
docker-compose down
- If you don't use
docker-compose
, you must list the containers and stop their execution manually. - To list the running containers, use the
docker ps -a
command. You should get an output such as the one below:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3034e9858c2e ubuntu "/bin/bash" 10 seconds ago Running (0) 7 seconds ago hungry_goodall
- To stop the container, use the command
docker stop <nome-do-container>
. - To list the containers again, use the command
docker ps -a
. You’ll see an exit like the one below:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3034e9858c2e ubuntu "/bin/bash" 10 seconds ago Exited (0) 7 seconds ago hungry_goodall
- Make sure that the container has been stopped. To do this, the
STATUS
column must be set toExited
. - After the containers have finished running, update Segura®.
It's also possible to completely remove the Docker images instead of just stopping their execution. To remove these images, proceed with the commands below:
- After stopping the execution of the containers with the
docker-compose down
ordocker stop <my-container>
commands, use thedocker image rmi <image_id>
command. This command will remove the image according to its ID. - You can remove several images simultaneously by using the
docker images rmi <image_id> <image_id>
command, passing on the IDs of the images you want to remove.