【docker】Error response from daemon: the working directory ‘xx‘is invalid, it needs to be an absolute

bug:
Error response from daemon: the working directory ‘xxxxx’ is invalid,
it needs to be an absolute path.

参考网址:here

最终采取下面的回答:

If you have Git Bash installed, you’re hitting Mingw/msys2’s POSIX path conversion feature; see docker/docs#10912 and docker/for-win#6754 (comment)
This is due to Mingw/msys2 doing automatic path conversion; see http://www.mingw.org/wiki/Posix_path_conversion
You can disable this by prefixing paths with // or setting the MSYS_NO_PATHCONV=1 environment variable (see https://stackoverflow.com/a/34386471)
Because this path conversion happens before docker receives the value, its not something we can fix in docker.

解决办法

-w /event_coreference_xdoc
改为
-w //event_coreference_xdoc

你可能感兴趣的:(docker,bug,docker,容器,运维)