Mar*_*ssy 3 authentication credentials docker windows-subsystem-for-linux
运行docker build、docker ps、docker pull等命令docker images都可以正常工作。现在我想推送一个图像,所以我当然必须先登录。
docker login我在 WSL 终端中运行Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in %PATH
%, out: ``
Run Code Online (Sandbox Code Playgroud)
docker login来自 powershell 工作正常。/mnt/c/Users/<winusername>/.docker所以我在和之间创建了一个符号链接/home/<wslusername>/.docker。等效的方法适用于.aws,但.docker它无法共享甚至确认凭据,因此它再次要求输入用户和密码,并抛出与上面相同的错误。
小智 5
这对我有用,
sudo ln -s /mnt/c/Program\ Files/Docker/Docker/resources/bin/docker-credential-desktop.exe /usr/bin/docker-credential-desktop.exe
Run Code Online (Sandbox Code Playgroud)
将可执行文件从 Windows 路径链接到 linux 路径,或者您可以将 Windows PATH 添加到 linux PATH 上。
参考: https: //github.com/docker/for-win/issues/6652
| 归档时间: |
|
| 查看次数: |
11188 次 |
| 最近记录: |