Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I type docker.io version, and get:

Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 0.11.1, please update docker

I follow that with an apt-get update, then either: apt-get upgrade, or apt-get upgrade docker.io, but all it gives me is:

docker.io is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I'm running Ubuntu 14.04 (trusty) 64bit server.

EDIT: I think I used a script in this Post comment to install docker (since it purported to allow me to just type docker instead of docker.io)

share|improve this question
1  
How did you install docker? –  i08in May 26 at 12:52
    
I don't know what's the objective of the script apart of renaming the "docker.io" binary to just "docker". –  Braiam May 26 at 16:11
    
@Braiam: I wasn't really sure either, but since I'm not too familiar with linux O/S's, I was hoping it was doing something more useful than that (or perhaps this was just a better way than simply renaming the binary). –  Gerrat May 26 at 16:49

7 Answers 7

up vote 34 down vote accepted

Suppose it is Ubuntu Trusty (14.04) release, which has 0.9.1 officially

Update to 0.11.1 release

If you want to upgrade in this release, see new launchpad https://launchpad.net/~docker-maint/+archive/testing, better use ppa installation.

sudo add-apt-repository ppa:docker-maint/testing
sudo apt-get update
sudo apt-get install docker.io

Now I get the latest one

$ docker -v
Docker version 0.11.1, build fb99f99

Be aware, with the 1.0 GA release, this method may be changed

Update to latest release(now 1.1.1)

This is the way stated to install docker for 12.04 LTS in official document and noticed in ubuntuupdates.org, which looks work for 14.04 as well.

Refer the command to Getting Docker Installed on Ubuntu 12.04 LTS as well

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

Now I get

$ docker -v
Docker version 1.1.1, build bd609d2

lxc-docker will remove old docker package, therefore please backup the configuration in advance.

share|improve this answer
2  
Do you have any pros/cons of using this method vs. the one I found that installs from htts://get.docker.io ? I would think the one from the actual docker domain seems more official, but if it's the same guys that administer the docker-maint/testing ppa, then maybe it doesn't matter. –  Gerrat May 29 at 11:55
    
I don't know, the link for your method is little old, PPA is the good choice for ubuntu user, and this comes from Docker Ubuntu maintainers team, it is also trust-able. Probably as you said, same guys with better way to serve the community ;-) –  Larry Cai May 29 at 13:24
    
----------Sold! –  Gerrat May 29 at 13:33
    
@Gerrat seems back to your solution again if go for 1.0 now –  Larry Cai Jun 12 at 1:09

One way to upgrade to the latest version (without installing from source) is to use the instructions here provided by Digital Ocean:

  1. Add docker repository key to apt-key for package verification

    sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  2. Add the docker repository to aptitude sources:

    sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
  3. Update the repository with the new addition:

    sudo aptitude update
  4. Finally, download and install docker:

    sudo aptitude install lxc-docker
share|improve this answer
    
This does mean, however, that you are deciding to use the potentially lesser stable upstream version. For example, after upgrading to upstream docker 1.1.0, I began seeing the error Driver aufs failed to remove root filesystem when removing certain containers. I never saw this with the docker.io package, which is presumably more tested and stable in Trusty. –  Sridhar Ratnakumar Jul 3 at 23:35
    
@Sridhar: Agreed. ...however, my original reason for upgrading, was that the current "tested and stable" version was either missing some key functionality (don't remember what now), or had some show-stopper bugs for me. ...and your particular complaint seems to be a bug that's existed for quite some time: see the three related bugs referenced at bottom of this page: coderwall.com/p/h24pgw –  Gerrat Jul 4 at 13:32

You have the latest version of docker.io (0.9.1) which is available in the ubuntu repositories for Trusty Tahr as of today.

However, if you still want to upgrade the version, you can clone the latest version of docker.io from github and recompile. For instructions regarding installing it from source, there is an interactive tutorial on docker.io's blog.

share|improve this answer
    
Thanks, but I just did the interactive tutorial. It says nothing about installing it from source - it just goes through some very basic docker commands. –  Gerrat May 26 at 13:24
    
The reason I need a later version is that it is completely bombing trying to run an imported image. The image runs fine on the latest stable version: 0.11.1. I'm running the latest stable version on another machine, and I'm not exactly sure how I got it, but it's unlikely I compiled it from source. Is there maybe just another repository that has the latest stable version at? –  Gerrat May 26 at 13:26
    
You were helpful in tweaking my memory on how I installed the latest version. –  Gerrat May 26 at 13:41

You can install from the third-party repository following the instructions:

$ 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
share|improve this answer

Short answer: the official Docker install doc now covers this for Ubuntu 14.04 (though it's not as clear as it could be).

The Ubuntu package named docker.io is not maintained by Docker, Inc. and will lag behind the latest version. For example today it's stuck at 0.9.1 and latest is 1.0.1. I would go ahead and remove this if you have it.

The Docker package is named lxc-docker (confusingly, since LXC is no longer strictly required). It is however up to date. You will need to add the Docker-owned repo to your apt-get setup. The official Docker install doc covers this for Ubuntu 14.04 - look for "If you'd like to try the latest version of Docker". Note, the binary will be docker (as opposed to docker.io when provided by Ubuntu).

share|improve this answer

Simplest method if you trust get.docker.io

curl --silent --location https://get.docker.io/ubuntu/ | sudo sh

share|improve this answer

You also can download the docker.io 0.11.1 .deb file from Launchpad and install.

wget https://launchpad.net/~docker-maint/+archive/testing/+files/docker.io_0.11.1%7Edfsg1-1%7Eppa1%7Etrusty1_amd64.deb

sudo dpkg -i docker.io_0.11.1~dfsg1-1~ppa1~trusty1_amd64.deb
share|improve this answer
    
Interesting. It looks like that was just set up a few weeks ago. –  Gerrat May 26 at 14:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.