简体   繁体   中英

Can Docker plugins inspect label metadata from starting image?

I'm asking if it's possible to have a docker volume plugin inspect a starting image's label metadata in order to take some additional action? I'd like to see said action include mounting a device , but I'm not sure if such is yet possible with a driver plugin, nor have I seen any mention of say device plugin lately.

I'm trying to see if there are ways to enable the nvidia-docker-plugin in the scope of docker-compose files like so:

test:
  image: ubuntu
  volume_driver: nvidia-docker-driver
  labels:
    nvidia.gpu: "0,1"
  command: nvidia-smi

Relevant issue with context: https://github.com/NVIDIA/nvidia-docker/issues/39

只是复活这个老问题,说现在可以通过nvidia-docker-compose解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM