我们正在使用wget
inside docker images,它工作正常,我们想切换到curl
,但它不起作用
这是wget之前的命令
wget https://github.sme.corp/wiki-raw/dwi/bre/dists/stable/Key.gpg.key -O- | apt-key add - && \
echo "deb https://github.sme.corp/wiki-raw/dwi/bre/ stable main" > /etc/apt/sources.list.d/bre.list && \
我试着把它改成像下面那样卷曲,但它不起作用(我看不到相同的输出),你知道我错过了什么吗?
curl -sSL -f -k https://github.sme.corp/wiki-raw/dwi/bre/dists/stable/Key.gpg.key | apt-key add - && \
echo "deb https://github.sme.corp/wiki-raw/dwi/bre/ stable main" > /etc/apt/sources.list.d/bre.list && \
发布于 2020-02-10 22:23:32
尝试使用curl命令,如下所示
curl -f -L -o <<weblink to the file>>
https://stackoverflow.com/questions/60150737
复制相似问题