Artikel zum Thema:
Schließen
Changelog
Schließen
In der cloud testen
In der cloud testen

Removing ONLYOFFICE DocSpace Enterprise for Docker from your computer

Introduction

If you run ONLYOFFICE DocSpace Enterprise 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 ONLYOFFICE DocSpace Docker version from your machine.

Removing ONLYOFFICE DocSpace containers

First you need to stop the ONLYOFFICE DocSpace Docker containers. This can be done using the Docker stop command:

sudo docker stop $(docker ps -q -f name=onlyoffice)

To remove the stopped containers use the following command:

sudo docker rm $(docker ps -aq -f name=onlyoffice)
The names of all the containers present in the system can be found using the command:
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)
Warning This command will remove ALL the containers immediately. Please do not use it if you have other containers running that you do not want to remove.

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 rm command:

sudo docker volume rm $(docker volume ls -q -f name=onlyoffice)

Deleting ONLYOFFICE DocSpace images

Now that the ONLYOFFICE DocSpace containers and all the data are deleted, you can finally delete the ONLYOFFICE DocSpace images. You can also need to delete the images in case you want to upgrade your ONLYOFFICE DocSpace for Docker installation to a new version. This can be done using the command:

sudo docker rmi $(docker images -q -f "reference=onlyoffice/*")

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)
Warning This command will delete ALL the images immediately. Please do not use it if you have other Docker images that you do not want to be deleted.

The names of all the images present in the system can be found using the command:

docker image ls
Herunterladen Auf Ihrem eigenen Server hosten Verfügbar für
Docker, Windows und Linux
Wer sich dafür interessiert hat,
hat auch das Folgende gelesen:
Schließen