Help Center/ CodeArts Deploy/ FAQs/ Command Execution for Deployment Actions/ Running Docker Commands/ What Should I Do If the Commands (start, restart, stop, and rm) Fail to Be Executed?
Updated on 2025-05-16 GMT+08:00

What Should I Do If the Commands (start, restart, stop, and rm) Fail to Be Executed?

Symptom 1

After you add the deployment action Run Docker Command and set Command to start, restart, stop, or rm, the error message ...No such container... is displayed.

Cause Analysis

The container does not exist.

Solution

Check whether the entered container name or ID is correct. If not, enter the correct container name or ID and perform the deployment again.

Symptom 2

The result shows that the deployment is successful, but the start, stop, or restart operation fails.

Cause Analysis

The container configuration is incorrect, or the configuration file is damaged.

Solution

Check and modify the internal configuration file of the container based on the logs.