I have docker installed in my system but I dont want docker to start on startup or in the background but only needs to run when it is required for me. So I have disabled docker daemon using
sudo systemctl stop docker.service
sudo systemctl disable docker.service
This prevented docker from running on startup and in the background . The problem is if I want to work with docker images then I have to again restart the docker services sudo systemctl restart docker.service
and after my use I have to disable it. Without docker daemon running docker images
returns
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Is there a way to run docker images without docker daemon running? Else is there a way to hard code to disable the docker daemon after use?