Is there a “multi-user” Docker mode, e.g. for scientific clusters?

前端 未结 5 1703
盖世英雄少女心
盖世英雄少女心 2021-02-06 03:24

I want to use Docker for isolating scientific applications for the use in a HPC Unix cluster. Scientific software often has exotic dependencies so isolating them with Docker app

5条回答
  •  失恋的感觉
    2021-02-06 04:07

    There is an officially supported Docker image that allows one to run Docker in Docker (dind), available here: https://hub.docker.com/_/docker/. This way, each user can have their own Docker daemon. First, start the daemon instance:

    docker run --privileged --name some-docker -d docker:stable-dins
    

    Note that the --privileged flag is required. Next, connect to that instance from a second container:

    docker run --rm --link some-docker:docker docker:edge version
    

提交回复
热议问题