Docker Commands

# systemctl start docker (Starting Docker service) # systemctl enable docker (Enabling Docker at boot level) # docker –version (Checking Docker version) # docker info (Gives all information about host and containers) # docker run/pull image (images can be downloaded from Docker Hub) # docker run hello-world (Just download and start a test container) # […]

A simple python script to install a rpm package in linux

Below is the simple program to install a package named “vsftpd” in linux OS. You need to import “os” module for that. #!/usr/bin/python3.6 import os try: os.system(‘dnf install vsftpd’) except: exit("Failed to install package")