Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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):

enter image description here

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
like image 856
Sebastian Roces Avatar asked Sep 03 '25 05:09

Sebastian Roces


1 Answers

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
like image 97
Mostafa Hussein Avatar answered Sep 04 '25 20:09

Mostafa Hussein