Reputation: 49
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)
Upvotes: 1
Views: 10063
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