Mrugesh
Mrugesh

Reputation: 4517

Docker is not able to be installed on ubuntu 14.04

I am doing the steps as shown below to install docker:

sudo apt-get update

sudo apt-get install docker

The to start docker I am using sudo service docker start.But then it says docker : unrecognized service. I have followed every steps , is there any step missing in this process

Upvotes: 0

Views: 2062

Answers (3)

Muscothym
Muscothym

Reputation: 309

and if you wanted to upgrade to a later version

Upvotes: 2

dom
dom

Reputation: 335

Please remove all old packages by using this command.

sudo apt-get remove docker*

I think you have to install repo by using following command.

if you use 64bit Ubuntu version

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

and after that

sudo apt-get update
sudo apt-get -y install docker.io

And confirm version by using

dom@dom-pc:~/web$ docker version
Client:
 Version:      1.12.6
 API version:  1.24
 Go version:   go1.7.4
 Git commit:   XXXXXXX
 Built:        Tue Mar 14 09:47:15 2017
 OS/Arch:      linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

Upvotes: 2

user3808887
user3808887

Reputation: 319

Follow these steps

  • $ sudo apt-get remove docker docker-engine docker.io
  • $ sudo apt-get update

  • $ sudo apt-get install docker-ce

Upvotes: 1

Related Questions