It is a solution memo when an error occurs when downloading docker gpg using curl.
$ curl -fsSL http://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
gpg: no valid OpenPGP data found.
You may be able to download it as follows
wget http://download.docker.com/linux/ubuntu/gpg
sudo apt-key add gpg
If you are in a proxy environment, specifying a proxy server as shown below may solve the problem.
$ curl http://download.docker.com/linux/ubuntu/gpg -x http://xxx.xxx.xxx.xxx:portno
gpg: No valid OpenPGP data found Proxy setting with curl command
Recommended Posts