Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose "version 3.6" does not support platform #5953

Closed
jetersen opened this issue May 9, 2018 · 2 comments
Closed

docker compose "version 3.6" does not support platform #5953

jetersen opened this issue May 9, 2018 · 2 comments

Comments

@jetersen
Copy link

jetersen commented May 9, 2018

Description of the issue

Docker compose version 3.6 does not support platform yet 2.4 does? What gives?
#5767 seems only to have added it for 2.4 😭

Context information (for bug reports)

Output of "docker-compose version"
docker-compose version 1.21.2, build a1334711
docker-py version: 3.3.0
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2k  26 Jan 2017
Output of "docker version"
Client:
 Version:      18.05.0-ce-rc1
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   33f00ce
 Built:        Thu Apr 26 00:57:53 2018
 OS/Arch:      windows/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.05.0-ce-rc1
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.10.1
  Git commit:   33f00ce
  Built:        Thu Apr 26 01:07:01 2018
  OS/Arch:      windows/amd64
  Experimental: true

docker-compose file

version: '3.6'

services:
  jenkins:
    platform: linux
    env_file: prod.env
    container_name: jenkins
    image: jenkins-master
    build: .
    ports:
      - 8080:8080
      - 50000:50000
    volumes:
      - jenkins:/var/jenkins_home
    secrets:
      - id_rsa

volumes:
  jenkins:

secrets:
  id_rsa:
    file: .\secrets\jenkins_ssh_key
Output of "docker-compose config"
ERROR: The Compose file '.\docker-compose.yml' is invalid because:
Unsupported config option for services.jenkins: 'platform'

Steps to reproduce the issue

  1. use version: '3.6' in docker-compose.yml file
  2. add platform to service
  3. run docker-compose config

Observed result

ERROR: The Compose file '.\docker-compose.yml' is invalid because:
Unsupported config option for services.jenkins: 'platform'

Expected result

Platform to be supported

@shin-
Copy link

shin- commented May 10, 2018

@jetersen
Copy link
Author

@shin- guess I got confused that you still carried the schema around for 3.x when I was looking at the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants