CentOS 8 and Fedora 32 - make DNS working for Docker containers

Published on Author admin

In CentOS 8 and Fedora 32, by default DNS requests from Docker containers are being blocked by Firewalld. To make DNS working for Docker containers use below command (assuming that containers are using docker0 interface for networking): sudo firewall-cmd --zone=trusted --add-interface=docker0 --permanent sudo firewall-cmd --zone=trusted --add-interface=docker0

Install OpenSSH under Windows 10 and set Powershell as default shell

Published on Author admin

Follow below steps for installation of OpenSSH server under Windows 10 OS. List available OpenSSH software for installation: Get-WindowsCapability -Online | ? Name -like 'OpenSSH*' Install OpenSSH client: Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Install OpenSSH server: Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Start OpenSSH service: Start-Service sshd Enable autostart for OpenSSH service: Set-Service -Name sshd -StartupType 'Automatic' Check… Continue reading Install OpenSSH under Windows 10 and set Powershell as default shell

Generating QR Code from Linux command line

Published on Author admin

To generate QR Code from Linux command line you can use qrencode tool. Use-case: * transfer config/text files from Linux machine to mobile phone * transfer config/text files from Linux machine when it is not possible to directly copy it (i.e. SSH session inside remote RDP session where copy to clipboard is disabled) Installation: dnf… Continue reading Generating QR Code from Linux command line

Running Docker on Fedora 31 - revert systemd configuration to use cgroup v1

Published on Author admin

Fedora 31 is first major distro with cgroup v2 (unified hierarchy). Follow below steps to make Docker working on it: Add Docker CE repository: sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo Install Docker CE: sudo dnf install docker-ce When you try to run Docker container on freshly installed Fedora 31, you will get following error message: docker:… Continue reading Running Docker on Fedora 31 - revert systemd configuration to use cgroup v1