I thing I have found the root course. When I use a docker image with the same type of the host, it's fine, however, when I use a docker image which is different from the host, this plugin will have exceptions. For example, if the host is a windows and wanted to use a linux image as the slave, then working directory will not work because D:\ or C:\ is not a absolution path in the linux system, that must be changed to /d or /c.
However, since the host is a windows, the WindowsDockerClient will be used and cmd.exe will be run in the linux image, and that will lead to another exception. The conclusion is to use an image which align with the host.
I haven't tested on a Mac but I think Mac<
>Linux will be fine but Mac<>Windows will still have the same issue.