Posts

Showing posts from October, 2023

Docker

  hostnamectl set-hostname docker-host     // Change the hostname to docker-host Docker  There is not password for run pull request for docker   yum update -y      yum install docker* systemctl status docker systemctl start docker systemctl enable docker systemctl enable docker.service   // auto enable service for docker  systemctl status docker pull the images for docker hub https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.82/bin/apache-tomcat-9.0.82.tar.gz docker pull centos // if we do not put tags it will download the latest images docker pull centos: 7 // It has verion 7 tags Note we can pull docker images without login to dockerhub    docker images        docker info | grep -i dir     // Docker info for storing docker images        ls -l /var/lib/docker/    //Location where docker images are stored    ls -l /var/lib/docker/overlay2/6a61...