pretty code

2019年12月13日 星期五

docker run 重要參數

一樣,又是個不常用的東東,拯救我的腦袋。

-v 掛載 /home/xx 目錄到 container 的 /test
-w 設定工作目錄為 container 的 /test

docker run -v /home/xx:/test -w /test --runtime=nvidia -it --rm tensorflow/tensorflow:latest-gpu /bin/bash

沒有留言: