4

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 -

8
  • there are no pictures in your question Commented Mar 14, 2019 at 15:42
  • I just added the picture sorry about that! Commented Mar 14, 2019 at 15:49
  • can you ensure that this is an actual dash ? try to remove it and add it manually Commented Mar 14, 2019 at 15:50
  • @MostafaHussein Yes sir I can confirm I wrote it out without copying and pasting it over several times. Commented Mar 14, 2019 at 16:05
  • Something strange in here, the command should contain | not > the one before sudo Commented Mar 14, 2019 at 16:06

1 Answer 1

5

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 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.