<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/rss/stylesheet/" type="text/xsl"?>
<rss xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:taxo='http://purl.org/rss/1.0/modules/taxonomy/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:podbridge='http://www.podbridge.com/podbridge-ad.dtd' version='2.0'>
<channel>
  <title>NOBODY</title>
  <language>en-us</language>
  <generator>microfeed.org</generator>
  <itunes:type>episodic</itunes:type>
  <itunes:explicit>false</itunes:explicit>
  <atom:link rel="self" href="https://microfeed-duizhang-fun.pages.dev/rss/" type="application/rss+xml"/>
  <link>https://duizhang.fun</link>
  <itunes:author>duizhang</itunes:author>
  <itunes:image href="https://media-cdn.duizhang.fun/microfeed-duizhang-fun/production/images/channel-3c1360303d5cbae39b48cc2146aa8d0c.jpg"/>
  <image>
    <title>NOBODY</title>
    <url>https://media-cdn.duizhang.fun/microfeed-duizhang-fun/production/images/channel-3c1360303d5cbae39b48cc2146aa8d0c.jpg</url>
    <link>https://duizhang.fun</link>
  </image>
  <copyright>©2024</copyright>
  <itunes:owner>
    <itunes:email>xxynly@gmail.com</itunes:email>
    <itunes:name>duizhang</itunes:name>
  </itunes:owner>
  <item>
    <title>gost搭建代理</title>
    <guid>z9IdNWpH-Cz</guid>
    <pubDate>Wed, 04 Sep 2024 03:35:05 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>GOST Command Usage</title>

  <style>

    body {

      font-family: Arial, sans-serif;

      margin: 20px;

      line-height: 1.6;

    }

    h1 {

      color: #333;

    }

    pre {

      background-color: #f4f4f4;

      padding: 10px;

      border-left: 4px solid #007bff;

      overflow-x: auto;

    }

    code {

      font-family: 'Courier New', monospace;

      color: #d63384;

    }

  </style>

</head>

<body>



<h1>GOST Command Usage</h1>



<p>To install GOST and set up a SOCKS5 proxy, use the following commands:</p>



<pre><code>wget -O - https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz | gzip -d &gt; /usr/bin/gost

chmod +x /usr/bin/gost

</code></pre>



<h2>Proxy Configurations</h2>



<p>Here are different configurations for the GOST SOCKS5 proxy:</p>



<ul>

  <li><code>gost -L socks5://:1080</code> - Enable SOCKS5 proxy service on local port 1080 without authentication.</li>

  <li><code>gost -L socks5://192.168.0.1:1080</code> - Limit SOCKS5 proxy to local address 192.168.0.1 on port 1080.</li>

  <li><code>gost -L socks5://guest:guest@:1080</code> - Enable SOCKS5 proxy with username and password authentication (both are "guest").</li>

  <li><code>gost -L socks5+tls://:1080</code> - Use TLS encryption for the SOCKS5 proxy.</li>

  <li><code>gost -L socks5+tls://guest:guest@:1080</code> - Use TLS encryption with username and password authentication.</li>

  <li><code>gost -L socks5+quic://:1080</code> - Enable SOCKS5 over QUIC.</li>

</ul>



</body>

</html>]]>
    </description>
    <link>https://f.duizhang.fun/i/gostdaili-z9IdNWpH-Cz/</link>
    <itunes:episodeType>full</itunes:episodeType>
  </item>
  <item>
    <title>Install Docker Engine on Ubuntu</title>
    <guid>EgRoNGvlDYr</guid>
    <pubDate>Wed, 07 Aug 2024 12:30:45 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<h1>Remove Docker PackagesRemove Docker Packages</h1><pre class="ql-syntax" spellcheck="false">for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
</pre><p>This code will remove the following Docker-related packages using the APT package manager:</p><ul><li>docker.io</li><li>docker-doc</li><li>docker-compose</li><li>docker-compose-v2</li><li>podman-docker</li><li>containerd</li><li>runc</li></ul><p>Note that this will remove the Docker runtime and related tools from your system. If you need to reinstall Docker, you will need to follow the appropriate installation instructions for your operating system.</p><h1>Install Docker on UbuntuInstall Docker on Ubuntu</h1><h2>Add Docker's official GPG key</h2><pre class="ql-syntax" spellcheck="false">sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
  
</pre><h2>Add the repository to Apt sources</h2><pre class="ql-syntax" spellcheck="false">echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release &amp;&amp; echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null
sudo apt-get update
  
</pre><h2>Install Docker</h2><pre class="ql-syntax" spellcheck="false">sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  
</pre><h2>Verify Docker installation</h2><pre class="ql-syntax" spellcheck="false">docker version
  
</pre>]]>
    </description>
    <link>https://duizhang.fun/i/EgRoNGvlDYr/</link>
    <itunes:episodeType>full</itunes:episodeType>
  </item>
  <item>
    <title>docker配置代理拉取镜像</title>
    <guid>dceI-a79uwA</guid>
    <pubDate>Sat, 29 Jun 2024 07:46:00 GMT</pubDate>
    <itunes:explicit>false</itunes:explicit>
    <description>
      <![CDATA[<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Setting Up Docker with Proxy on Ubuntu Server</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            line-height: 1.6;
        }
        h1, h2 {
            color: #333;
        }
        pre {
            background-color: #f4f4f4;
            padding: 10px;
            border-left: 4px solid #007bff;
            overflow-x: auto;
        }
        code {
            font-family: 'Courier New', monospace;
            color: #d63384;
        }
    </style>
</head>
<body>

<h1>Setting Up Docker with Proxy on Ubuntu Server</h1>

<p>In this guide, we will walk through the process of configuring Docker to work behind an HTTP proxy on an Ubuntu server. This setup is essential for environments where direct internet access is restricted.</p>

<h2>Step 1: Verify Docker Installation</h2>

<p>First, let's confirm that Docker is installed and check its version:</p>

<pre><code>root@ubuntuserver:/home/zw# docker --version
Docker version 27.2.0, build 3ab4256
</code></pre>

<p>If Docker is not installed, you can follow the official Docker installation guide for Ubuntu.</p>

<h2>Step 2: Create Configuration Directory</h2>

<p>Next, we need to create a directory for Docker's systemd service overrides:</p>

<pre><code>root@ubuntuserver:/home/zw# sudo mkdir -p /etc/systemd/system/docker.service.d
</code></pre>

<h2>Step 3: Create Proxy Configuration File</h2>

<p>Now, we will create a configuration file for the HTTP proxy. Attempting to directly edit the file will result in an error, as it does not yet exist:</p>

<pre><code>root@ubuntuserver:/home/zw# /etc/systemd/system/docker.service.d/http-proxy.conf
bash: /etc/systemd/system/docker.service.d/http-proxy.conf: No such file or directory
</code></pre>

<p>Instead, we will create and edit the file using <code>vim</code>:</p>

<pre><code>root@ubuntuserver:/home/zw# sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf
</code></pre>

<p>In this file, add the following lines to configure the proxy settings:</p>

<pre><code>[Service]
Environment="HTTP_PROXY=http://192.168.1.241:27890/"
Environment="HTTPS_PROXY=http://192.168.1.241:27890/"
</code></pre>

<h2>Step 4: Reload Systemd and Restart Docker</h2>

<p>After saving the configuration, reload the systemd manager configuration to recognize the new settings:</p>

<pre><code>root@ubuntuserver:/home/zw# sudo systemctl daemon-reload
</code></pre>

<p>Then restart the Docker service to apply the changes:</p>

<pre><code>root@ubuntuserver:/home/zw# sudo systemctl restart docker
</code></pre>

<h2>Step 5: Verify Proxy Settings</h2>

<p>To ensure that Docker is using the proxy correctly, you can check the environment variables for the Docker service:</p>

<pre><code>root@ubuntuserver:/home/zw# sudo systemctl show --property=Environment docker
Environment=HTTP_PROXY=http://192.168.1.241:27890 HTTPS_PROXY=http://192.168.1.241:27890
</code></pre>

<h2>Step 6: Pull a Docker Image</h2>

<p>Finally, test the configuration by pulling a Docker image. In this example, we will pull the Debian image:</p>

<pre><code>root@ubuntuserver:/home/zw# docker pull debian
Using default tag: latest
latest: Pulling from library/debian
903681d87777: Pull complete
Digest: sha256:aadf411dc9ed5199bc7dab48b3e6ce18f8bbee4f170127f5ff1b75cd8035eb36
Status: Downloaded newer image for debian:latest
docker.io/library/debian:latest
</code></pre>

<h2>Conclusion</h2>

<p>By following these steps, you have successfully configured Docker to work behind an HTTP proxy on your Ubuntu server. This allows you to pull images and perform other Docker operations in environments with restricted internet access.</p>

</body>
</html>]]>
    </description>
    <link>https://f.duizhang.fun/i/dockerdaili-dceI-a79uwA/</link>
    <itunes:episodeType>full</itunes:episodeType>
  </item>
</channel>
</rss>