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
[crayon-59eb37676c217995084526/]
To make sure it was installed, I ran
[crayon-59eb37676c227248066216/]
For a moment, It looked Docker is installed successfully, unti I tried to check the docker processes using
[crayon-59eb37676c22c945990646/]
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
[crayon-59eb37676c231061458560/]
and installed using the link : Docker Official Mac Installation

And Docker works perfectly now.

Until...

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...