docs: add Q&A section
This commit is contained in:
parent
58a7d17493
commit
a53ff37aec
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
|
|
@ -137,3 +137,51 @@ These commands are helpful for Docker maintenance but use them with caution as t
|
|||
```
|
||||
|
||||
---
|
||||
|
||||
## Q & A
|
||||
|
||||
### Resolving the 'No Space Left on Device' Error when using free-tier EC2 instance
|
||||
|
||||
Encountering a 'No space left on device' error indicates that your device's storage is full. Here's how to resolve this:
|
||||
|
||||
#### 1. Check Disk Usage
|
||||
Start by checking your disk usage. This can be done with the following command in the terminal:
|
||||
|
||||
```bash
|
||||
df -h
|
||||
```
|
||||
|
||||
This command will display a summary of the disk space usage on your device, as shown below:
|
||||
|
||||

|
||||
|
||||
#### 2. Clean Up Docker System
|
||||
If your disk is indeed full, a quick way to free up space is by cleaning up your Docker system. Use the command:
|
||||
|
||||
```bash
|
||||
docker system prune -af
|
||||
```
|
||||
|
||||
**Caution:** This command removes all unused Docker images, containers, volumes, and networks. Be sure to backup any important data before proceeding.
|
||||
|
||||
#### 3. Modify Docker Compose Configuration
|
||||
Alternatively, you can selectively reduce Docker's disk usage:
|
||||
|
||||
- **Disable the Tunnel Server**: Temporarily comment out or remove the tunnel server service in the `docker-compose.yml` file.
|
||||
|
||||

|
||||
|
||||
- **Disable Admin Frontend**: Similarly, you can disable the `admin_frontend` service in the `docker-compose.yml` file. This involves commenting out the relevant sections.
|
||||
|
||||

|
||||
|
||||
Additionally, ensure that dependencies on the `admin_frontend` service are also commented out as needed.
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue