Reputation: 4517
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
Reputation: 309
and if you wanted to upgrade to a later version
wget https://download.docker.com/linux/static/stable/x86_64/docker-17.06.1-ce.tgz (or whatever stable version you wanted)
tar xfvz docker-17.06.1-ce.tgz
cp docker/* /usr/bin/
docker -v
and you're done.
Upvotes: 2
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
Reputation: 319
Follow these steps
$ sudo apt-get update
$ sudo apt-get install docker-ce
Upvotes: 1