我得到這個錯誤,當我試圖docker-compose build
我的搬運工,compose.yml文件:無法建立泊塢窗 - 撰寫建
In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
泊塢窗版本
客戶: 版本:1.12.6 API版本:1.24 轉到版本:go1.6.3 git的承諾:78d1802 內置:星期二1月31日23點47分34秒2017年 OS /拱門:LINUX/AMD64
服務器: 版本:1.12.6 API版本:1.24 轉到版本:go1.6.3 git的承諾:內置78d1802 :星期二1月31日二十三時47分34秒2017年 OS /拱門:LINUX/AMD64
搬運工--version 泊塢版本1.12.6,構建78d1802
泊塢窗,構成--version 泊塢窗,撰寫版本1.5.2,建立未知
這是因爲構建未知?
泊塢窗,composer.yml
version: "2"
services:
postgres:
image: postgres:9.6
volumes:
- pgdata:/var/lib/data/postgres
backend:
build: .
command: gosu app bash
volumes:
- .:/app
- pyenv:/python
links:
- postgres:postgres
ports:
- 8000:8000
volumes:
pyenv:
pgdata:
我們可以看到搬運工,compose.yml? – whites11
@ whites11版本: 「2」 服務: Postgres的: 圖片:Postgres的:9.6 卷: - PGDATA:在/ var/lib中/數據/ Postgres的 後端: 構建。 命令:古藪應用慶典 卷: - :/應用程序 - pyenv:/蟒蛇 鏈接: - Postgres的:Postgres的 端口: - 8000:8000 卷: pyenv: PGDATA: – 4M01
帖吧在問題中,如果格式正確,請 – whites11