Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu and updating Docker

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 

Update

This just keeps getting stranger. After trying all of the advice below, I now get this:

$ 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 then can I update docker?

like image 844
Magick Avatar asked Apr 29 '16 09:04

Magick


People also ask

What is the latest Docker version for Ubuntu?

OS (based on Ubuntu 21.04) version of Docker is 20.10. 2. The most recent Docker release, however, is 20.10. 7 (released June 6, 2021).

How do I automatically update a Docker container?

By pushing a new Docker image to your repository, Watchtower will automatically trigger a chain of events to update your running container's base Docker image. When Watchtower detects a new push, it will pull the new base image, gracefully shutdown your running container, and start it back up.

What's the latest version of Docker for Linux?

20.10. 17. This release of Docker Engine comes with updated versions of Docker Compose and the containerd , and runc components, as well as some minor bug fixes.


1 Answers

Since I lost half an hour on this, maybe it will help some people out there. What I had to do to upgrade my version is:

curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" > ./docker-compose sudo mv ./docker-compose /usr/bin/docker-compose sudo chmod +x /usr/bin/docker-compose 

Use the last version of docker compose instead of 1.13.0.

like image 151
Steve Lng C Avatar answered Sep 20 '22 20:09

Steve Lng C