It is recommend to check before installing docker software whether docker is already available or not by using "docker --version".
if the response is empty, install the docker using below commands.
- sudo apt install docker.io for ubuntu
- sudo dnf install docker-ce for redhat
- docker --version - check the docker installed or not
Start docker service and check the status using below commands for ubuntu and rhel.
- "sudo systemctl start docker"
- "sudo systemctl enable docker"
- "sudo systemctl status docker"
- "sudo systemctl enable --now docker"
- "systemctl is-active docker"
- "systemctl is-enabled docker"
Once docker installed and we can see the complete related information in path of /var/lib/docker.
<- Back to Volumes - - - Back to Testing Applications - - - Ahead to Docker Container Example ->