No Deployment Permissions
Symptoms
Case 1: The error message connect: permission denied is displayed.
Case 2: An error message is displayed, indicating that the user does not have permissions to access /etc/docker/daemon.json:.
Cause Analysis
Only the root user and users in the Docker user group are allowed to perform operations on Docker.
Solution
- Add the user to the Docker user group.
- Log in to the server using a user account with the sudo permissions, for example, testuser.
- Check whether the Docker user group exists.
sudo cat /etc/group | grep docker
- If so, add the user to the Docker user group.
sudo usermod -aG docker testuser
- If not, create a Docker user group and add the user to the group.
sudo groupadd docker sudo usermod -aG docker testuser
- If so, add the user to the Docker user group.
- Exit the server. Then, log in to the server again and check whether the user can run the Docker command.
docker info
- If another error message, indicating that the user does not have permissions to access /var/run/docker.sock, is displayed, modify the permissions for /var/run/docker.sock.
sudo chmod a+rw /var/run/docker.sock
Running Docker Commands FAQs
- Docker Not Installed
- Docker Command Parameter Error
- No Deployment Permissions
- Image Does Not Exist
- login Command Execution Failed
- build Command Execution Failed
- tag Command Execution Failed
- push Command Execution Failed
- run Command Execution Failed
- start, restart, stop, or rm Command Execution Failed
- rmi Command Execution Failed
- pull Command Execution Failed
- rm Command Execution Failed
- Connection Timed Out
- Application Deployment Interruption
- Insufficient Permissions
- Parameters Contain Backslashes (\)
- No Host Exists in the Environment
- Environment Does Not Exist
- Failed to Deploy an Application on a Windows Host
- Error Occurs During Application Deployment with the sudo Privileges
- Deployment Blocked by Third-Party Antivirus Software
- Invalid Path
- A Network Error Occurs During Software Installation on CentOS
- A Network Error Occurs During Software Installation on Ubuntu OS
- Windows Path Not Allowed on a Linux Host
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.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore