【发布时间】:2020-09-16 21:42:38
【问题描述】:
当我运行命令 docker-compose -f docker-compose.yml up 时,我的容器正常启动。
在 IntelliJ 中,当打开文件 docker-compose.yml 时,会出现执行容器的按钮,当我尝试通过 * .yml 文件直接上传容器时,出现以下错误:
Failed to deploy 'Compose: docker-compose': Sorry but parent: com.intellij.execution.impl.ConsoleViewImpl[,0,0,1188x368,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] has already been disposed (see the cause for stacktrace) so the child: com.intellij.util.Alarm@7566093f will never be disposed.
我的 docker-compose.yml 文件:
version: 3.4
services:
api.logistics-service:
container_name: logistics-service
build: ./docker
ports:
- "8080:8080"
【问题讨论】:
-
我遇到了完全相同的问题,将 IntelliJ 从 2019.3 更新到 2020.1,问题就解决了。
-
Rider 2020.2.1 中的同样问题。重启机器有帮助,所以我确信它已在较新版本中得到修复。
标签: java spring docker docker-compose devops