How to reduce the size of RHEL/Centos/Fedora Docker image

Yes Docker image sizes can be dramatically reduced by doing a “yum clean all” Initial RHEL Image Size = 196M Dockerfile – RHEL Image(+bc) = 505M # Build command # docker build -t rhel7base:latest –build-arg REG_USER='<redhat_developer_user>’ –build-arg REG_PSWD='<password>’ –squash . FROM registry.access.redhat.com/rhel7/rhel:latest LABEL maintainer=”tim” ARG REG_USER=none ARG REG_PSWD=none RUN subscription-manager register –username $REG_USER –password $REG_PSWD … Read more

Access to the path “/etc/mono/registry” is denied

Turns out simply creating the folder using mkdir sudo mkdir /etc/mono/registry and setting the right permissions using chmod sudo chmod uog+rw /etc/mono/registry does the trick. However I still don’t understand where such a folder is hidden in Ubuntu and why it doesn’t need to be created there, as well as why it isn’t created automatically … Read more

failed to start daemon: Error initializing network controller: Error creating default “bridge” network

Found out that $ firewall-cmd –get-active-zones FedoraWorkstation interfaces: ens4u1u2 wlp59s0 docker interfaces: br-48d7d996793a libvirt interfaces: virbr0 trusted interfaces: docker0 the interface docker0 seems to be in the trusted zone. But there’s another zone called docker. So I decided to give it a shot and add it to the docker zone instead. $ sudo firewall-cmd –permanent … Read more

How to automatically install required packages from a Python script as necessary?

How to automatically install required packages from a python script as necessary? Let’s assume that your Python script is example.py: import os import time import sys import fnmatch import requests import urllib.request from bs4 import BeautifulSoup from multiprocessing.dummy import Pool as ThreadPool print(‘test’) You can use pipreqs to automatically generate a requirements.txt file based on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)