Quantcast
Viewing all articles
Browse latest Browse all 6142

Docker dial tcp i/o timeout error without sudo

I'm attempting to install and use docker and minikube on an arm machine. I had a working installation of both but I messed up my minikube installation so I uninstalled both docker and minikube to do a full fresh install. I used to following commands to uninstall both:

minikube deletesudo dpkg --purge minikubedocker system prune --all --volumesdocker stop $(docker ps -aq)docker rm -f $(docker ps -aq)rocker rmi -f $(docker images -aq)docker volume rm $(docker volume ls -q)sudo systemctl stop dockersudo apt purge docker-desktop docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extrassudo rm -rf /usr/local/lib/dockersudo rm -rf /var/lib/dockersudo rm -rf /var/lib/containerdsudo rm -rf /etc/dockersudo rm -rf ~/.dockersudo rm /etc/apparmor.d sudo rm /usr/local/bin/com.docker.clisudo apt autoremove

I confirmed that both were uninstalled using the whereis command.

I then reinstalled docker using the installation and post installation guide on the docker documentation site. But I started running into the following error whenever I tried running a docker command without sudo:

docker psGet "https://192.168.49.2:2376/v1.46/containers/json": dial tcp 192.168.49.2:2376: i/o timeout

It runs fine when I use sudo though:

sudo docker psCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

How can I fix this error? I'm very new to docker and minikube so a detailed explanation would really help. Thank you!


Viewing all articles
Browse latest Browse all 6142

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>