简体   繁体   中英

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)

错误

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM