From 1c2ec4880db04e9a4d3d76203c6859a39f22ce06 Mon Sep 17 00:00:00 2001
From: Doctor Who <Doctor-Who@users.noreply.github.com>
Date: Thu, 29 Apr 2021 12:12:36 +0200
Subject: [PATCH] Update DOCKERUSE.md

Update docker run syntax depending of Docker version
---
 doc/DOCKERUSE.md | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/doc/DOCKERUSE.md b/doc/DOCKERUSE.md
index d5c290e..b510877 100644
--- a/doc/DOCKERUSE.md
+++ b/doc/DOCKERUSE.md
@@ -48,12 +48,20 @@ Beware of ownership issues! see the last section of this doc.
 
 In Linux, this is quite straightforward. 
 Just follow the steps described in the [nvidia-docker documentation](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html).
-You can then use the OTBTF `gpu` tagged docker images with the **NVIDIA runtime**:
+You can then use the OTBTF `gpu` tagged docker images with the **NVIDIA runtime** : 
+
+With Docker version earlier than 19.03 :
 
 ```bash
 docker run --runtime=nvidia -ti mdl4eo/otbtf2.4:gpu bash
 ```
 
+With Docker version including and after 19.03 :
+
+```bash
+docker run --gpus all -ti mdl4eo/otbtf2.4:gpu bash
+```
+
 You can find some details on the **GPU docker image** and some **docker tips and tricks** on [this blog](https://mdl4eo.irstea.fr/2019/10/15/otbtf-docker-image-with-gpu/). 
 Be careful though, these infos might be a bit outdated...
 
-- 
GitLab