Cannot connect to the Docker daemon at unix:///var/run/docker.sock
- June 22, 2017
- by
- Venkatesh Thallam
Recently, I have tried installing docker on my Mac using brew
brew install dockerTo make sure it was installed, I ran
docker --versionFor a moment, It looked Docker is installed successfully, unti I tried to check the docker processes using
docker psAfter, 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 dockerand installed using the link : Docker Official Mac Installation
And Docker works perfectly now.
Until brew fixes...
Heap and Priority Queue 101
- June 11, 2017
- by
- Venkatesh Thallam
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...