第一次运行alpine docker容器并尝试安装openssh时,我遇到了以下错误:
如何安装
ole@T:~$ docker run -it --rm alpine /bin/ash
/ # apk add openssh
WARNING: Ignoring APKINDEX.d3812b7e.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.bb2c5760.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
openssh (missing):
required by: world[openssh]
如何安装
openssh
?
docker exec debugging-img --pid=container-to-debug
。 - Auzias/etc/ssh/sshd_config
中:PermitRootLogin yes
。 - Sandburg