Posts for Tutorials Category

Cannot connect to the Docker daemon at unix:///var/run/docker.sock

Recently, I have tried installing docker on my Mac using brew

brew install docker

To make sure it was installed, I ran

docker --version

For a moment, It looked Docker is installed successfully, unti I tried to check the docker processes using

docker ps

After, this I have started seeing the error message “Cannot connect to the Docker daemon at unix:///var/run/docker.sock”

After, some juggling between existing issues reported on Github, I found that Docker doesn’t support installation using Homebrew. So I uninstalled the docker using

brew uninstall docker

and installed using the link : Docker Official Mac Installation

And Docker works perfectly now.

Until brew fixes...

Heap and Priority Queue 101

Heap

Heap: A heap is a partially ordered tree, typically a binary tree. Heaps use the index starting typically from ‘i’.
When represented as an array, the parent element can be found at i/2, left child at 2*i, right child at 2 *i+1, where ‘i’ is the index of the location.
A ‘N’ element heap contains...

BTC Prices