Posts

Showing posts from January, 2026

use dnf with proxy server

use dnf with proxy sudo vi /etc/dnf/dnf.conf  proxy=http://192.168.151.1:3128   [main]  proxy=http://192.168.151.1:3128

using docker with proxy

Create the drop-in directory: bash sudo mkdir -p /etc/systemd/system/docker.service.d Use code with caution. Create the proxy configuration file: Create a file named /etc/systemd/system/docker.service.d/http-proxy.conf . Add your proxy details: Paste the following into the file, replacing the placeholder URLs with your actual proxy address: ini [Service] Environment="HTTP_PROXY=http://proxy.example.com:3128" Environment="HTTPS_PROXY=http://example.com" Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com" Use code with caution. Apply the changes: Reload the systemd manager configuration and restart the Docker service: bash sudo systemctl daemon-reload sudo systemctl restart docker Use code with caution. Verify the configuration: Check if the environment variables are active: bash sudo systemctl show --property=Environment docker Use code with caution.   2. Configure the Docker Client (Containers & Builds)   This configuration tells Do...