usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.48k stars 576 forks source link

Docker-apps not working on CyberPanel #1209

Closed Awan closed 4 months ago

Awan commented 5 months ago

Title: Troubleshooting Docker Apps Not Working on Linux Server with CyberPanel

Introduction: Recently, there was an issue encountered on a Linux server running CyberPanel where Docker applications were not functioning properly. After thorough investigation, it was discovered that the docker-compose binary was missing from the system. This report outlines the steps taken to troubleshoot and resolve the issue.

Issue Description: Docker applications on the Linux server with CyberPanel were failing to work as expected. Upon investigation, it was observed that the docker-compose binary was not present on the system, which is essential for managing Docker-based applications.

Steps Taken:

  1. Verification of Docker Installation:

    • Checked the status of Docker installation on the server by running:
      docker --version
    • Confirmed that Docker was installed and functioning properly.
  2. Identification of Missing Component:

    • Attempted to execute docker-compose commands, but received an error indicating that the command was not found.
    • Analyzed system logs and verified that docker-compose was indeed missing.
  3. Installation of Docker Compose:

    • Resolved the issue by installing Docker Compose using the following commands:
      sudo apt install docker-compose
  4. Verification of Docker Compose Installation:

    • Checked the installation of Docker Compose by running:
      docker-compose --version
    • Confirmed that Docker Compose was successfully installed and accessible.

Conclusion: The issue of Docker applications not working on the Linux server with CyberPanel was resolved by installing the docker-compose binary, which was missing from the system. Following the outlined steps, Docker Compose was successfully installed. From CyberPanel GUI, docker-compose.yml is being created. But it creates some version conflicts. After modifying the file, these docker apps were running using docker-compose commandline.

docker-compose -f /home/docker/domain.name/docker-compose.yml up -d

Checked the apps running, their status with

docker logs container_name

and they were working as expected.

but still using CyberPanel GUI, docker apps aren't working.