With the latest version of Windows Docker Desktop, mount the Windows directory when running the image

example command

docker run -d -v /d/tb-gateway/logs:/thingsboard_gateway/logs 
 -v /d/tb-gateway/extensions:/thingsboard_gateway/extensions 
 -v /d/tb-gateway/config:/thingsboard_gateway/config 
 --name tb-gateway 
 --restart always 
 thingsboard/tb-gateway

/d/tb-gateway/logsIt is the directory dunder the disk /tb-gateway/logs.
If not, it will be created automatically.

Isn't this better than WSL? ╭(╯^╰)╮

The directory under windows is generally like thisD:\tb-gateway>


When in use, a disk is used as a subdirectory path separator under the root directory/

Guess you like

Origin blog.csdn.net/github_35631540/article/details/131438958