Sebastian Roces
Sebastian Roces

Reputation: 92

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 -

Upvotes: 4

Views: 7610

Answers (1)

Mostafa Hussein
Mostafa Hussein

Reputation: 11940

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

Upvotes: 5

Related Questions