Deployment FAQ
Deployment FAQ
First, error troubleshooting methods
You can look for it first.Issue, or a new Issue, private deployment error, be sure to provide detailed operation steps, logs, screenshots, otherwise it is difficult to troubleshoot.
Get Backend Error
- docker ps -aCheck the running status of all containers and check whether all containers are running. If there is an exception, trydocker logs 容器名View the corresponding log.
- The containers are running normally,docker logs 容器名View error log
Front End Error
When the front end reports an error, the page will crash and prompt to check the console log. You can open the browser console and viewconsolelog in. You can also click the hyperlink corresponding to log, which will prompt you to the specific error file, and you can provide these detailed error information for convenient investigation.
II. General Issues
1. Failed to start Docker client
Depaint
The following error occurred while running Lemon:
Launch docker client failed. Please make sure you have installed docker and started docker desktop/daemon.
Solve
Try the following actions in order:
- SuredockerIs running on your system. You should be abledocker psRuns successfully in the terminal.
- If using Docker Desktop, make sureSettings > Advanced > Allow the default Docker socket to be usedEnabled.
- Depending on your configuration, you may needSettings > Resources > Network > Enable host networkingEnabled in Docker Desktop.
- Reinstall Docker Desktop.
2. How to delete a mirror
To find the pulled image in docker, you may needContainers Pause mirroring in, and thenimages And then re-pull the mirror through the WSL command.
3. Port conflict
If the ports conflict, you can modify the host port mapping. For example, map the host's 8080 port to the container's 8000 Port:
docker run -d -p 8080:8000 --name my-app-container my-app
4.docker客户端报错Docker Engine stopped
Check the Docker service status:
On Linux, you can use the command sudo systemctl status docker to check the status of the Docker service.
On Windows or Mac, you may need to open the Docker Desktop application and make sure it is running.
Start the Docker service:
If the service is not running, you can try to start it manually. On Linux, this can be done with the command sudo systemctl start docker.
For Windows and Mac users, try restarting the Docker Desktop application.
Check the system log:
Looking at the system logs can help determine why the Docker service stopped. On Linux, you can use the journalctl -u docker command to view Docker-related log information.
Update or reinstall Docker:
If the problem persists, consider updating to the latest version of Docker or reinstalling Docker after a complete uninstall.
Check the configuration file:
Make sure that the Docker configuration file is correct. Sometimes incorrect configuration may also cause the service to fail to start.
Resource Limits:
Make sure that the system has enough resources (such as memory and CPU) to run the Docker service. Insufficient resources may cause the service to stop unexpectedly.
Permission issues:
Make sure that the current user has the appropriate permissions on Docker. On Linux, you may need to add users to the docker group.