有办法在 Synology DS418 上安装 Docker 吗?
我尝试过this与这个aarch64/docker-20.10.6.tgz。
这是我所做的步骤:
在 https://download.docker.com/linux/static/stable/aarch64/ 下载静态 docker 二进制文件。我选择了 aarch64/docker-20.10.6.tgz,但我可能在这里弄错了。
tar xzvf /path/to/.tar.gz
sudo cp docker/* /usr/bin/
使用以下配置创建 /etc/docker/daemon.json 配置文件:
{
"storage-driver": "vfs",
"iptables": false,
"bridge": "none"
}
我在执行步骤 5 时收到此错误。
xxx@NAS:~$ sudo dockerd &
[1] 806
xxx@NAS:~$ INFO[2021-05-04T14:35:55.752149353-05:00] Starting up
WARN[2021-05-04T14:35:55.753236211-05:00] could not change group /var/run/docker.sock to docker: group docker not found
INFO[2021-05-04T14:35:55.753833733-05:00] libcontainerd: containerd is still running pid=28644
INFO[2021-05-04T14:35:55.753946586-05:00] parsed scheme: "unix" module=grpc
INFO[2021-05-04T14:35:55.754184624-05:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2021-05-04T14:35:55.754265514-05:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>} module=grpc
INFO[2021-05-04T14:35:55.754313995-05:00] ClientConn switching balancer to "pick_first" module=grpc
WARN[2021-05-04T14:35:56.754892127-05:00] 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
WARN[2021-05-04T14:35:59.191460361-05:00] 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
WARN[2021-05-04T14:36:03.215171500-05:00] 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
WARN[2021-05-04T14:36:08.582014438-05:00] 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 containerd: timeout waiting for containerd to start
非常感谢
你所缺少的是:
sudo synogroup --add docker $USER
如果您以非 root 用户身份运行此命令,该用户将能够执行
docker
命令,而无需 sudo
。
如果您不想这样做,请尝试将命令运行为
root
或
sudo synogroup --add docker
可能有效。但我还没有测试过后两种方法。
因为我找到了这篇文章并且自己做了,所以我想添加这个:
https://wiki.servarr.com/docker-arm-synology
通过执行单个命令(使用脚本),它成功地在我的 nas 上安装了 docker,没有出现任何问题。