Docker – difference between CMD and ENTRYPOINT

The CMD line in a Dockerfile defines the default command to run when a container is launched. If the command requires arguments then you need to use an array, for example ["cmd", "-a", "arga value", "-b", "argb-value"], which will be combined together and the command cmd -a arga value -b argb-valuewould be run. An alternative approach to CMD is ENTRYPOINT. While … Continue reading Docker – difference between CMD and ENTRYPOINT

Advertisements

Kubernetes – Install Master Node

  I have prepared the bash script to execute all the commands necessary to install on Kubernetes master server. Check the last command to switch off swap. I have seen this below error when running the #kubeadm init with swap on. #kubeadm init As mentioned in above screenshot - We need to copy the configuration … Continue reading Kubernetes – Install Master Node

RedHat – Rebuild corrupted rpmdb

The "rpmdb" is broken and not able to run any of the rpm commands. #rpm -qa rpmdb: Thread/process 3392/140287890028448 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 -  (-30974) error: cannot open Packages database in /var/lib/rpm rpmdb: Thread/process … Continue reading RedHat – Rebuild corrupted rpmdb