Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/df1d4126e22d382114d6eda1ffb115710724993cf033ba09b66fac6ed8d7faea" to rootfs at "/etc/mysql/my.cnf": mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu/df1d4126e22d382114d6eda1ffb115710724993cf033ba09b66fac6ed8d7faea:/etc/mysql/my.cnf (via /proc/self/fd/9), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
文章来源:https://www.toymoban.com/news/detail-803735.html
经推理检查,原来是红色框框内按钮关了。我打开后重新运行docker。就可以正常使用了。 文章来源地址https://www.toymoban.com/news/detail-803735.html
到了这里,关于当docker(WSL2)出现以下问题时,我的解决方式的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!