Trying to install DOCKER GPG key recieving error: Curl: option '-' is unknown

时光怂恿深爱的人放手 提交于 2021-01-27 18:00:01

问题


I'm trying to add the docker GPG key, and I'm unable to do so because it doesn't recognize that i'm trying to pipe the GPG key into the APT KEY

I'm getting back the following error (see picture):

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

回答1:


You seems to have a Keyboard mapping issue where the pipe | turns into a redirect symbol >. It seems more related to Digital Ocean and their Console itself where your droplet is hosted - by the look of the image in the question - according to this thread.

The first option is to use SSH to log into your droplet.

Your second option is to do this process on two steps:

wget https://download.docker.com/linux/ubuntu/gpg
sudo apt-key add gpg


来源:https://stackoverflow.com/questions/55166317/trying-to-install-docker-gpg-key-recieving-error-curl-option-is-unknown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!