mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -254,8 +254,6 @@ ALLOWED_HOSTS = ['*']
|
||||
|
||||
### 11.6.8 步骤 6:启动应用
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker compose up
|
||||
```
|
||||
@@ -301,8 +299,6 @@ $ docker compose exec db psql -U django_user -d django_db
|
||||
|
||||
### 11.6.10 常见问题排查
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
#### Q1:数据库连接失败
|
||||
|
||||
**错误信息**:`django.db.utils.OperationalError: could not connect to server` **可能原因与解决方案**:
|
||||
@@ -330,8 +326,6 @@ $ docker compose logs db
|
||||
|
||||
#### Q3:权限问题
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 如果容器内创建的文件 root 用户所有
|
||||
|
||||
|
||||
Reference in New Issue
Block a user