简体   繁体   English

如何使用docker-compose.yml文件在tutum中创建堆栈?

[英]How to create stack in tutum with docker-compose.yml file?

I am trying to build a Stack as follows: 我试图建立一个堆栈,如下所示:

redis:
  image: redis
  ports:
    - '6379'
app:
  build: .
  links:
    - redis

when I push "Create Stack" button, I get this error: 当我按下“创建堆栈”按钮时,出现以下错误:

Oops!

Service 'app': Value {u'build': u'.', u'links': [u'redis'], u'name': u'app'} for field '<obj>' contains additional property 'build' not defined by 'properties' or 'patternProperties' and additionalProperties is False. See 'https://support.tutum.co/support/solutions/articles/5000583471' for more details

Can someone help me with this please? 有人可以帮我吗?

The Tutum documentation states the following at the bottom of the page: Tutum文档在页面底部声明以下内容:

Docker-compose non-supported keys Docker编写的不受支持的密钥

Tutum.yml has been designed with docker-compose.yml in mind to maximize compatibility, but the following keys are not supported: Tutum.yml在设计时考虑了docker-compose.yml以最大程度地提高兼容性,但不支持以下键:

 build external_links env_file 

This clearly states that build is not a supported key, which is what your error message also says. 这清楚地表明build不是受支持的密钥,这也是您的错误消息所说明的内容。 It looks like you'll have to remove the build key from your file. 看来您必须从文件中删除build密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM