services.db的不支持的配置选项:'images' [英] Unsupported config option for services.db: 'images'
本文介绍了services.db的不支持的配置选项:'images'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试学习如何利用docker-compose,并按照说明进行操作,直到收到错误消息为止.这是我的docker-compose文件.
I am trying to learn how to utilize docker-compose and was following instructions until I received an error. Here's my docker-compose file.
version: '3.7'
services:
web:
build: ./app
command: python /usr/src/app/manage.py runserver 0.0.0.0:8000
volumes:
- ./app/:/usr/src/app/
ports:
- 8000:8000
environment:
- SECRET_KEY=my_secret_key
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=postgres
- SQL_USER=postgres
- SQL_PASSWORD=postgres
- SQL_HOST=db
- SQL_PORT=5432
depends_on:
- db
db:
images: postgres:10.7-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data:
当我返回并输入"docker-compose up -d --build"时,我会收到一条错误消息
When I go back and enter "docker-compose up -d --build", I would get an error saying
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'images'
我认为我的缩进正确,并且图像"对我来说还不错.我的docker-compose版本是1.23.2,并试图在Mac上运行它.有任何想法吗?预先感谢.
I think I have the indentation correct and 'images' look okay to me. My docker-compose version is 1.23.2 and trying to run this on Mac. Any ideas? thanks in advance.
推荐答案
应该为 image
不是 images
.
这篇关于services.db的不支持的配置选项:'images'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文