mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-24 02:35:27 +00:00
Remove blank lines after code block markers
This commit is contained in:
@@ -30,7 +30,6 @@ VS Code 的 [Dev Containers](https://code.visualstudio.com/docs/devcontainers/co
|
||||
"postCreateCommand": "go version"
|
||||
}
|
||||
```
|
||||
|
||||
然后在 VS Code 命令面板选择:
|
||||
|
||||
* `Dev Containers: Reopen in Container`
|
||||
@@ -40,7 +39,6 @@ VS Code 会拉取镜像并启动容器,随后你就可以在容器内运行:
|
||||
```bash
|
||||
go test ./...
|
||||
```
|
||||
|
||||
## 21.6.3 结合 Docker Compose(可选)
|
||||
|
||||
如果项目同时依赖数据库/缓存(例如 Postgres/Redis),可以使用 `dockerComposeFile`
|
||||
@@ -58,5 +56,4 @@ go test ./...
|
||||
"workspaceFolder": "/work"
|
||||
}
|
||||
```
|
||||
|
||||
注意:`service` 需要对应 compose 里的服务名。
|
||||
|
||||
Reference in New Issue
Block a user