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

Using Docker Compose with a web proxy involves either configuring the Docker Daemon (for image pulls/builds) or defining environment variables within your compose.yaml (for runtime container traffic and build-time package installation). The approach depends on whether you need Docker itself to operate behind a proxy or you want your services within containers to use a proxy. 1. Configure Proxy for Docker Daemon (Image Pulls/Builds) This is necessary if the host machine running Docker needs a proxy to access the internet (e.g., pulling images from Docker Hub). This configuration is host-specific and affects all Docker operations. For Linux systems using systemd: Create a systemd drop-in directory for the Docker service: bash sudo mkdir -p /etc/systemd/system/docker.service.d Create a configuration file named /etc/systemd/system/docker.service.d/http-proxy.conf and add your proxy settings. Include the correct URL, port, and optional authentication (username/password): [Service] ...