我最近在我的电脑上安装了 Manjaro,我正在做一些测试。我尝试构建和启动一个在 Windows、Mac Os、Ubuntu 等上完美运行的 Docker。
但是当我运行时,sudo docker-compose up
我得到一个错误。一切似乎都很好,除了最后:
Successfully built d72aa4c69ad6
Successfully tagged code_interface:latest
WARNING: Image for service interface was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating code_db_1 ... done
Creating code_web_1 ... done
Creating code_interface_1 ... done
Attaching to code_db_1, code_web_1, code_interface_1
code_db_1 exited with code 139
这是我的 docker-compose.yml 的样子:
db:
image: mongo:3.0.2
ports:
- "27017:27017"
web:
build: X
ports:
- "5000:5000"
links:
- db
interface:
build: Y
ports:
- "8080:8080"
links:
- web
知道为什么我会收到此错误或如何解决它吗?