Skip to content

Instantly share code, notes, and snippets.

@kneerunjun
Created December 25, 2016 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kneerunjun/d0072ab323ccaf5c0e7fe7c44a521c8c to your computer and use it in GitHub Desktop.
Save kneerunjun/d0072ab323ccaf5c0e7fe7c44a521c8c to your computer and use it in GitHub Desktop.

Getting docker started on Linux machine

Like me I expect you to have a Linux machine running atop VMbox that may inturn running on either Win10 or Mac. This also means that you have a linux machine already and all your docker commands are fired from a linux machine. Which gets me to the straight point - no need for docker-machine commands

Installing docker on your linux machine

Im using Anteregos(Arch) with Gnome desktop

yaourt docker 

choose to install all

docker, docker-compose docker-machine

This would install docker and next woudl be to check if the version of docker is alright

$ docker version
$ docker info

But this is what you get as an error ?

“Cannot connect to the Docker daemon” when the daemon is running?

Basically for the docker machine to be started as daemon you need yourself to be added to the group "docker"

usermod -aG docker kneerunjun

Restart the machine and then try to fire docker version command things now should be working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment