FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
JHelio
Staff
Staff
Article Id 415218
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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
89b0561d6f2f ems-postgres-ha "/opt/bitnami/script…" 12 minutes ago Restarting (1) 25 seconds ago pg-1

 

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
root@SRV-EMS-01:/home/PC#docker rm pg-1

 

If the issue still occurs, collect logs with the following command and open a TAC support ticket:

 

#docker logs pg-1