Ubuntu and updating Docker

0 votes

I am trying to run the latest stable version of docker and docker-compose.

I am following the instructions on https://docs.docker.com/engine/installation/linux/ubuntulinux/

Apparently the current version of docker-compose is 1.7.

Yet, after running through the documentation, installing docker-engine, I then get:

$ docker-compose --version
docker-compose version: 1.4.0

And

$ docker --version
Docker version 1.11.1, build 5604cbe

When I try to update it, I get the following:

$ sudo apt-get upgrade docker-engine
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... docker-engine is already the newest version.
Done

$ docker-compose -v

The program 'docker-compose' is currently not installed. You can install it by typing:

sudo apt-get install docker-compose
anton@Charles:~$ sudo apt-get install docker-compose
Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-compose is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

How do I update docker?

Aug 1, 2018 in Docker by Hannah
• 18,520 points
3,414 views

1 answer to this question.

0 votes

Try this

sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo aptitude update
sudo aptitude install lxc-docker

If this is not working, lets do it via third party :

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
$ sudo apt-get update
$ sudo apt-get install lxc-docker
answered Aug 1, 2018 by Kalgi
• 52,350 points

Related Questions In Docker

0 votes
1 answer

Different file owner inside Docker container and in host machine Ask

Filesystems, at least in Unix- and Linux-like ...READ MORE

answered Jun 25, 2018 in Docker by Damon Salvatore
• 5,980 points
944 views
0 votes
1 answer

Different file owner inside Docker container and in host machine

Here is what you can try. Since ...READ MORE

answered Jun 27, 2018 in Docker by Atul
• 10,240 points
1,936 views
0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 7,060 points
3,275 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
+1 vote
1 answer

How to expose docker container's ip and port to outside docker host without port mapping?

you can accomplish this with IP aliasing ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 52,350 points

edited Jan 16, 2020 by Kalgi 31,590 views
0 votes
1 answer

How to create a container and run images in docker?

Look for what all images you have ...READ MORE

answered Feb 23, 2019 in Docker by Kalgi
• 52,350 points
2,219 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP