尝试安装DOCKER GPG密钥接收错误:卷曲:选项'-'未知 [英] Trying to install DOCKER GPG key recieving error: Curl: option '-' is unknown

查看:89
本文介绍了尝试安装DOCKER GPG密钥接收错误:卷曲:选项'-'未知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试添加docker GPG密钥,但无法执行此操作,因为它无法识别我正在尝试将GPG密钥通过管道传输到APT KEY

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):

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

推荐答案

您似乎遇到了键盘映射问题,其中管道 | 变成了重定向符号> .根据

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.

第一种选择是使用SSH登录到您的Droplet.

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

这篇关于尝试安装DOCKER GPG密钥接收错误:卷曲:选项'-'未知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆