如何防止docker-compose在服务日志中添加project_name?
Dockerfile:
FROM alpine:3.6
CMD echo "Please don't prepend anything to this"
docker-compose.yml:
version: '3'
services:
app:
build:
context: .
image: useful-image-name
我从~/docker-playground
开始
docker-compose up
记录:
Starting docker-playground_app_1 ... done
Attaching to docker-playground_app_1
app_1 | Please don't prepend anything to this
docker-playground_app_1 exited with code 0
如何关闭输出中的app_1 |
?