我有一个简单的前端和后端应用程序。我有一个 docker-compose 文件,但它位于 frontend 文件夹内。因此,当我运行它时,前端和后端容器都在前端容器下(它采用文件夹的名称),如何重命名这个主容器?我用的是3.9版本
version: "3.9"
services:
be_service:
container_name: backend
build:
context: ../backend
dockerfile: ./Dockerfile
ports:
- "8089:8080"
fe_service:
container_name: frontend
build:
context: ./
dockerfile: ./Dockerfile
ports:
- "8088:80"
depends_on:
- be_service
Run Code Online (Sandbox Code Playgroud) 您好,我正在尝试在 azure 管道中使用 .net5 获取代码覆盖率。
运行测试(不是整个文件)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Results File: /home/vsts/work/_temp/_fv-az43-964_2021-08-25_08_31_59.trx
Attachments:
/home/vsts/work/_temp/f5dd5e9f-e260-437d-80ef-4fb917215b09/coverage.cobertura.xml
Passed! - Failed: 0, Passed: 16, Skipped: 0, Total: 16, Duration: 732 ms - /home/vsts/work/1/s/sda2021_webapi/Test/sda2021_api.tests/bin/Release/net5.0/sda2021_webapi.tests.dll (net5.0)
Result Attachments will be stored in LogStore
Run Attachments will be stored in LogStore
Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently …Run Code Online (Sandbox Code Playgroud)