Help Center/
CodeArts Deploy/
FAQs/
Command Execution for Deployment Actions/
Running Docker Commands/
What Should I Do If the Error Message You cannot remove a running container Is Displayed When the rm Command Is Executed?
Updated on 2025-05-16 GMT+08:00
What Should I Do If the Error Message You cannot remove a running container Is Displayed When the rm Command Is Executed?
Symptoms
After you add the deployment action Run Docker Command and set Command to rm, the error message You cannot remove a running container is displayed.
Cause Analysis
The container to be deleted is running.
Solution
- Run the stop command to stop the container and then delete the container.
- Add the -f parameter to forcibly delete a running container using SIGKILL.
Parent topic: Running Docker Commands
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot