Docker installation
sudo apt-get update #update the system
sudo apt-get install docker.io #docker installation
The docker daemon will not be able to get permissions once installed, we need to give permissions to docker by adding the user to a group.
sudo -a -G usermod docker $USER
sudo reboot
- Command to check the containers
docker ps
Command to check the images
docker images
Command to pull an image
Command to start the container
Inspect the container's running processes and exposed ports using the docker inspect command.
Use the docker logs command to view the container's log output.
Use the docker stop and docker start commands to stop and start the container.
Use the docker rm command to remove the container when you're done.