在 docker 图像上使用 curl 而不是 wget
using curl instead wget on docker image
我们在 docker 图像中使用 wget
,效果正常,我们想切换到 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 && \
尝试像下面这样的 curl 命令
curl -f -L -o <<weblink to the file>>
我们在 docker 图像中使用 wget
,效果正常,我们想切换到 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 && \
尝试像下面这样的 curl 命令
curl -f -L -o <<weblink to the file>>