alpinelinux / docker-alpine

Official Alpine Linux Docker image. Win at minimalism!
MIT License
1.04k stars 261 forks source link

The alpine:latest image, which will cause openssh-client to not work properly. #394

Closed Molay closed 1 week ago

Molay commented 1 month ago

Hi~

One of my projects uses alpine:latest (amd64) as the base image, then installs openssh-client through the "RUN apk add" command, and uses ssh to connect to the remote server to perform operations.

Then I found the ssh connection would get stuck and eventually prompt a timeout error.

sudo docker run --rm -it alpine:latest

/ # apk add openssh-client
/ # ssh -V
OpenSSH_9.6p1, OpenSSL 3.1.4 24 Oct 2023
/ # ssh -v ****@****.com
OpenSSH_9.6p1, OpenSSL 3.1.4 24 Oct 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: Connecting to ****.com [*.*.*.*] port 22.
debug1: connect to address *.*.*.* port 22: Operation timed out
ssh: connect to host ****.com port 22: Operation timed out

The exact reason is not yet clear.

ncopa commented 1 week ago

we dont ship openssh in the alpine docker image so this should be reported and followed up on https://gitlab.alpinelinux.org/alpine/aports