ashish pandey
ashish pandey

Reputation: 49

Getting error (gpg: can't open '–': No such file or directory)while adding docker GPG key

While setup docker repository when I adding docker GPG key

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

Getting error (gpg: can't open '–': No such file or directory)

error

Upvotes: 1

Views: 10063

Answers (1)

Terry Sposato
Terry Sposato

Reputation: 642

It looks like you are using an ascii code "-".

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

This works, just be mindful of the "-" character at the end. Manually delete it and type it in your console if you have to as a test.

Upvotes: 5

Related Questions