WSL2使用docker-ce
Docker Desktop在我手上非常不穩(wěn)定,經(jīng)常守護進程啟動失敗。
于是,修改了管理進程的服務為systemd,在WSL2中安裝docker-ce,就采用ubuntu上的教程(依據(jù)發(fā)行版來定)
https://docs.docker.com/engine/install/ubuntu/
https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/
安裝好之后然后會出現(xiàn)奇奇怪怪的錯誤。
docker compose無法正常使用,安裝過程中會將docker compose軟鏈接到Windows。解決方案:https://github.com/docker/compose,找到對應發(fā)行版,放置在/usr/local/lib/docker/cli-plugins路徑上,修改權(quán)限,改個名即可。
docker desktop卸載不趕緊導致的,error getting credentials - err: docker-credential-desktop.exe resolves to executable in current directory (./docker-credential-desktop.exe), out: ``會出現(xiàn)這種認證錯誤的情況。看到.exe就知道不知道哪個設置設置不對了。找到~/.docker/config文件,刪除其中含有Desktop.exe的那一行。
希望趕緊出適配WSL2的docker-ce.
標簽: