安裝docker?
如何在 Ubuntu 22.04 LTS 中安裝 Docker 和 Docker Compose-如何在ubuntu上安裝docker
離線安裝docker:
Ubuntu 20.04離線安裝Docker 社區(qū)版 - 知乎
問題1:
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to download.docker.com:443
set -ex in shell script + set curl proxy
問題2:
當(dāng)服務(wù)器通過代理連接外網(wǎng)時,docker pull 會出現(xiàn)問題,文章來源:http://www.zghlxwxcb.cn/news/detail-660307.html
Error response from daemon: Get "https://registry-1.docker.io/v2/": read tcp 10.32.97.179:41268->34.205.13.154:443: read: connection reset by peer文章來源地址http://www.zghlxwxcb.cn/news/detail-660307.html
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/proxy.conf
sudo vim /etc/systemd/system/docker.service.d/proxy.conf
#輸入以下內(nèi)容,其中代理改成自己的,[Service]不能丟
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080/"
Environment="HTTPS_PROXY=http://proxy.example.com:8080/"
sudo systemctl daemon-reload
sudo systemctl restart docker.service
到了這里,關(guān)于ubuntu 安裝docker,并設(shè)置docker 代理的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!