Skip to content

Commit

Permalink
添加一个补充
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Mar 8, 2023
1 parent a54e6e1 commit e1fa6af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
<summary>Preview</summary>
<img src="answers/004.png">
</details>
- docker-compose中的environment环境变量,使用等号赋值和使用冒号赋值有啥不一样
- ~~docker-compose中的environment环境变量,使用等号赋值和使用冒号赋值有啥不一样~~
<details>
<summary>Preview</summary>
<img src="answers/005.png">
</details>
这是个反向例子,你可以看到ChatGPT一本正经地讲了一个论点,但实际情况完全不是这样,实际情况是,如果使用等号模式,而赋值的时候,给值加了双引号或者单引号,那么docker-compose解析的时候,会把引号解析为值的一部分,因此建议任何时候都直接使用冒号模式,而不用等号模式。

## 前端相关

Expand Down

0 comments on commit e1fa6af

Please sign in to comment.