| Description | This article describes how to resolve the issue 'container is restarting: stop the container before removing or force remove' when installing FortiClient EMS on a Linux Server. |
| Scope | FortiClient EMS Linux v7.4. |
| Solution |
During the FortiClient EMS for Linux installation process, the following error can appears in the log output:
From the below log:
root@SRV-EMS-01:/home/PC# docker rm pg-1 Error response from daemon: cannot remove container "/pg-1": container is restarting: stop the container before removing or force remove
The following error can also appear:
root@SRV-EMS-01:/home/atento# docker ps -a
To solve both errors, the container should be stopped first and then restarted using the following commands:
root@SRV-EMS-01:/home/PC#docker stop pg-1
If the issue still occurs, collect logs with the following command and open a TAC support ticket:
#docker logs pg-1 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.