docker mount directory

The docker mount directory can share the host's files and containers

sudo nvidia-docker run -dit -v /data:/root -p 192.168.0.126:6666:22 --name=tao   tao

 

With the -v parameter, the host directory before the colon must be an absolute path , and the path after the colon is the path in the mirror. r If a directory is missing, it will be created automatically. If you want to mount multiple directories, add multiple -v at the same time .

Guess you like

Origin blog.csdn.net/qq_16792139/article/details/113496316