Skip to content

docker run --isolation parameter not available #3906

Closed

Description

@PatrickLang

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

Activity

  1. PatrickLang commented on Sep 2, 2016

    @PatrickLang
    Author

    ping @friism - can you tag this for Windows?

  2. friism commented on Sep 3, 2016

    @friism

    @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.

  3. friism commented on Sep 3, 2016

    @friism

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

  4. PatrickLang commented on Sep 3, 2016

    @PatrickLang
    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

  5. uday31in commented on Sep 13, 2016

    @uday31in

    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.

  6. friism commented on Sep 22, 2016

    @friism

    @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

  7. modified the milestones: 1.9.0, 1.10.0 on Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions