I will be working with Docker/K8s pretty extensively. I’ve been tasked with creating my test environment. Knowing nothing of what I was doing, after installing
docker to my environment, I was having to
sudo everything to run it.
Should probably read the manual, but who does that?
Big sticking point – I don’t want to have to
sudo everything to run it, so, a caveat to the instructions. From https://docs.docker.com/engine/install/linux-postinstall/:
sudo groupadd docker sudo usermod -aG docker $USER newgrp docker
This should do it. I should be able to run
docker run hello-world without trouble.
No dice. Same docker.sock error.
Logged out, log back in.
I know, right? But that’s what had to happen to get Docker to play nice.