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 run --isolation parameter not available #3906

Closed
PatrickLang opened this issue Sep 2, 2016 · 6 comments
Closed

docker run --isolation parameter not available #3906

PatrickLang opened this issue Sep 2, 2016 · 6 comments

Comments

@PatrickLang
Copy link

docker run has a parameter --isolation that can be used to set additional isolation modes when running Docker containers. For example, docker run --isolation=hyperv is commonly used on Windows with Hyper-V. Given that most of the other run options are already supported such as security_opt and privileged, I think it makes sense that isolation should be there too.

Here's an example of how I would like to use it in docker-compose.yml:

version: '2'
services:
  sql:
    image: windowsservercore
    tty: true
    stdin_open: true
#    isolation: 'hyperv'

  web:
    image: windowsservercore
    tty: true
    stdin_open: true
#    isolation: 'hyperv'

networks:
  default:
    external:
      name: nat
@PatrickLang
Copy link
Author

ping @friism - can you tag this for Windows?

@friism
Copy link

friism commented Sep 3, 2016

@PatrickLang what's the behavior when hyperv is not available? It would be sad if adding this option caused some docker-compose.yml files to only work on some systems.

@friism
Copy link

friism commented Sep 3, 2016

@PatrickLang (I'm not an admin here, so can't label)

@PatrickLang
Copy link
Author

re: hyperv not available - I think that's ok. I view Dockerfiles as code that should have no dependency on environment. I expect to customize docker-compose files for my environment. For example, ipam, volume_driver, ipv4_address, logging can all contain data that will only work right in a specific deployment

@uday31in
Copy link

What is the correct way to specify isolation setting with compose? I have a Front end that can use process isolation however back end service needs to on server core due to .Net 3.5 dependency and hosts are Nano.

@friism
Copy link

friism commented Sep 22, 2016

@PatrickLang

For example, ipam, volume_driver, ipv4_address, logging can all contain data that will only work right in a specific deployment

Agree, it makes sense to include

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

4 participants