Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Installing/Uninstalling Docker/ Error Returned During the Deployment of the Action for Installing or Uninstalling Docker as a Common User
Updated on 2023-05-26 GMT+08:00

Error Returned During the Deployment of the Action for Installing or Uninstalling Docker as a Common User

Symptoms

During the deployment of the action Install/Uninstall Docker, if you set Operation to Install Docker and select a host that belongs to a common user, an error message is displayed.

fatal: [***.***.***.***: FAILED! ={"changed": false, "module_stderr": "Shared connection to ***.***.***.***closed.\r\n", "module_stdout": "sudo: Password required\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Cause Analysis

Docker must be installed as the root user or a user with the sudo permissions. A password is required when a common user runs commands with the sudo permissions. As a result, the deployment fails.

Solution

Install Docker as the root user or grant the password-free sudo permissions to the user.