Container init config is not supported
PR adds support of init config for container. But I can't use it since docker-compose fails on validation. My compose file:
che:
image: eclipse/che-server:nightly
env_file:
- '/data/instance/config/che.env'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/home/gaal/workspace/.che/instance/data:/data'
- '/home/gaal/workspace/.che/instance/logs:/logs'
- '/home/gaal/workspace/.che/instance/config:/conf'
- '/home/gaal/workspace/.che/instance/dev/che-tomcat:/assembly'
ports:
- '8080:8080'
restart: always
init: true
container_name: che
docker-compose version returns:
docker-compose version 1.13.0, build 1719ceb
docker-py version: 2.2.1
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
Are you using the v2.2 format?
I pasted whole compose file in description. I don't know which version is supposed by default in compose 1.13
If you're not specifying a version, it defaults to version 1 (legacy). Try this:
version: '2.2'
services:
che:
image: eclipse/che-server:nightly
env_file:
- '/data/instance/config/che.env'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/home/gaal/workspace/.che/instance/data:/data'
- '/home/gaal/workspace/.che/instance/logs:/logs'
- '/home/gaal/workspace/.che/instance/config:/conf'
- '/home/gaal/workspace/.che/instance/dev/che-tomcat:/assembly'
ports:
- '8080:8080'
restart: always
init: true
container_name: che
Yep, my bad. Sorry for bothering you.
This doesn't seem to work in v3.1?
I have a 3.1 compose file and it complains, saying "Unsupported config option".
@batjko , see #5049.
@maederm Ah, I hadn't seen that one. Thx.