簡體   English   中英

嘗試在 WSL2 上安裝 docker 時出現問題

[英]Issue trying to install docker on WSL2

當我嘗試運行sudo dockerd時收到休閑錯誤消息

 grpc: addrConn.createTransport failed to connect to {unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}. Err :connection error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting...  module=grpc
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.8.4 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

我可以檢查任何東西來修復它嗎? PS:我在 windows 上沒有管理員用戶,謝謝

更新系統上的軟件包 sudo apt update -y && sudo apt upgrade 問題是當前的 kernel 不支持創建表(不太可能)或 iptables

這是否解決了問題? 我遇到了同樣的錯誤,上面的解決方案不起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM