Download in docker

I going interactively to Linux inside docker and try to download something from github. For example:

wget http s://github.com/helium/blockchain-core/archive/master.git

connecting to github.com (github. com)|140.82.121.2|443… connected.
and never finished

git clone http s://github.com/helium/blockchain-core.git

fatal: unable to access ‘http s://github. com/helium/blockchain-core.git/’: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github. com:443

git clone ssh://git@github. com/helium/blockchain-core.git

git@github.com: Permission denied (publickey)

I have .ssh keys in current directory and known_hosts with github public key in my .ssh directory. I have understanding that I place behind docker proxy “bridge”, but how to solve this simplest download task inside docker?

On my side this works well, the error must be somewhere else than in Docker.

$ docker container run --rm -it debian bash
# cd
# apt-get update && apt-get install -y git
...
# git clone https://github.com/helium/blockchain-core.git
Cloning into 'blockchain-core'...
remote: Enumerating objects: 190, done.
remote: Counting objects: 100% (190/190), done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 17644 (delta 122), reused 117 (delta 69), pack-reused 17454
Receiving objects: 100% (17644/17644), 15.27 MiB | 6.88 MiB/s, done.
Resolving deltas: 100% (13734/13734), done.