First you need to stop the ONLYOFFICE Docs Docker container. This can be done using the Docker stop
command:
sudo docker stop documentserver
To remove the stopped container use the following command:
sudo docker rm documentserver
You need to have named the
ONLYOFFICE Docs Docker container using the Docker
--name command during the
installation. If you haven't done this, Docker will assign a name to the container by itself. Then 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.