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

Isolation parameter does not work in compose files with versions >2.3 #5069

Closed
Techwolfy opened this issue Aug 1, 2017 · 2 comments
Closed

Comments

@Techwolfy
Copy link

The isolation parameter was added in #3906, and was released in compose file version 2.1. However, it was never included in the version 3 schema file, so it causes errors with newer compose file versions.

The v3 schema documentation at https://docs.docker.com/compose/compose-file/#isolation indicates that it is still supported so it took me quite a while to find the problem. It seems that the line "isolation": {"type": "string"} (from compose/config/config_schema_v2.3.json#L163) was left out in the move to v3.0, and hasn't appeared again since. The parameter is still in compose/service.py and the tests were never removed so this is probably an easy fix.

The compose file I'm working with is intended to be deployed to a swarm, so unfortunately I can't just downgrade it. I've set "exec-opts": ["isolation=hyperv"] in C:\ProgramData\docker\config\daemon.json on each node to change the default as a workaround for now.

@shin-
Copy link

shin- commented Aug 2, 2017

isolation is not an available option for swarm services, hence why it has not been ported to v3 yet. The first step to rectify that is to request that addition on the moby/moby issue tracker.

@shin-
Copy link

shin- commented Feb 23, 2018

Added in docker/cli#426 on the engine side,
and as part of #5448 on the Compose side.

@shin- shin- closed this as completed Feb 23, 2018
@shin- shin- added this to the 1.18.0 milestone Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants