<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docker on 知识铺的博客</title>
    <link>https://index.zshipu.com/geek002/tags/Docker/</link>
    <description>Recent content in Docker on 知识铺的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Tue, 29 Oct 2024 07:52:06 +0000</lastBuildDate>
    <atom:link href="https://index.zshipu.com/geek002/tags/Docker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Docker中设置HTTP代理的方法</title>
      <link>https://index.zshipu.com/geek002/post/202410/Docker%E4%B8%AD%E8%AE%BE%E7%BD%AEHTTP%E4%BB%A3%E7%90%86%E7%9A%84%E6%96%B9%E6%B3%95--%E7%9F%A5%E8%AF%86%E9%93%BA/</link>
      <pubDate>Tue, 29 Oct 2024 07:52:06 +0000</pubDate>
      <guid>https://index.zshipu.com/geek002/post/202410/Docker%E4%B8%AD%E8%AE%BE%E7%BD%AEHTTP%E4%BB%A3%E7%90%86%E7%9A%84%E6%96%B9%E6%B3%95--%E7%9F%A5%E8%AF%86%E9%93%BA/</guid>
      <description>如果你需要在 Docker 中设置 HTTP 代理，可以通过设置环境变量来实现。以下是设置代理的步骤： 设置环境变量：在你的 shell 会话中设置 HTTP_PROXY 和 HTTPS_PROXY 环境变量。例如： 1 2 export HTTP_PROXY=&amp;#34;http://192.168.99.188:1080&amp;#34; export HTTPS_PROXY=&amp;#34;http://192.168.99.188:1080&amp;#34; 如果你还需要设置 SOCKS 代理，可以设置 ALL_PROXY 环境变量： 1 export ALL_PROXY=&amp;#34;socks5://192.168.99.188:1080&amp;#34; 配置 Docker 服务以自动使用代理设置 如果你希望 Docker 服务在启动时自动应用代理设置，你需要将相应的环</description>
    </item>
    <item>
      <title>Centos8 Docker 安装步骤</title>
      <link>https://index.zshipu.com/geek002/post/202410/Centos8-Docker-%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4--%E7%9F%A5%E8%AF%86%E9%93%BA/</link>
      <pubDate>Tue, 29 Oct 2024 07:42:06 +0000</pubDate>
      <guid>https://index.zshipu.com/geek002/post/202410/Centos8-Docker-%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4--%E7%9F%A5%E8%AF%86%E9%93%BA/</guid>
      <description>1，卸载旧版本 1 sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine 2，安装依赖包 Docker需要一些依赖包 1 sudo yum install -y yum-utils device-mapper-persistent-data lvm2 3，设置yum源 为了提高下载速度，建议使用国内的镜像源。例如，可以使用阿里云的镜像源： 1 2 3 sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 4，查看可安装的docker版本 1 yum list docker-ce --showduplicates | sort -r 5，安装docker 1 sudo yum install -y docker-ce-25.0.5 docker-ce-cli-25.0.5 containerd.io docker-buildx-plugin</description>
    </item>
  </channel>
</rss>
