- Home
- Apps
- Installation
- Developer
- Removing a Docker installation of ONLYOFFICE Apps Developer
Removing a Docker installation of ONLYOFFICE Apps Developer
Introduction
If you run ONLYOFFICE Apps for Docker on your computer, there might be some cases when you need to completely remove it from your computer or simply delete the current image when a new version is released, otherwise Docker will run the container from the already downloaded image.
This guide will show you how to remove the ONLYOFFICE Apps Docker version from your machine.
Removing ONLYOFFICE Apps containers
First you need to stop the ONLYOFFICE Apps Docker containers. This can be done using the Docker stop command:
sudo docker stop $(sudo docker ps -q -f name=onlyoffice)
To remove the stopped containers use the following command:
sudo docker rm $(sudo docker ps -aq -f name=onlyoffice)
sudo docker ps -a
You can also remove all the Docker containers from your system using the following command:
sudo docker rm -f $(sudo docker ps -aq)
Deleting data stored outside containers
If you need to delete the data stored outside the container after removing the container, this can be done using the volume rm command:
sudo docker volume rm $(sudo docker volume ls -q -f name=onlyoffice)
Deleting ONLYOFFICE Apps images
Now that the ONLYOFFICE Apps containers and all the data are deleted, you can finally delete the ONLYOFFICE Apps images. You may also need to delete the images in case you want to upgrade your ONLYOFFICE Apps for Docker installation to a new version. This can be done using the command:
sudo docker rmi $(sudo docker images -q -f "reference=onlyoffice/*")
sudo docker image ls
If you are sure that you do not have any other images on your system or do not need them any longer, you can delete all the existing Docker images using the single command:
sudo docker rmi -f $(sudo docker images -aq)