How to upgrade Docker in Ubuntu
Abstract: In the article "experience DigitalOcean VPS cloud service", we have built a Ubuntu 14.04 VPS operating system environment, and use the Docker package (docker. i/O) after Docker is installed, but the installed version is 1.0.1, some new features are unavailable (for example, docker exec). This article records the latest Docker upgrade method.
First Installation Method: (apt-get)
Apt-get install-y docker. ioln-sf/usr/bin/docker. io/usr/local/bin/dockersed-I '$ acomplete-F _ docker'/etc/bash_completion.d/docker. iosudo apt-get install apt-transport-https # Add the Docker repository key to your local keychainsudo apt-key adv -- keyserver keyserver.ubuntu.com -- recv-keys repository # Add the Docker repository to your apt sources list. sudo sh-c "echo deb https://get.docker.io/ubuntu docker main>/etc/apt/sources. list. d/docker. list "# update your sources listsudo apt-get update # And then run the following command to install the latest docker: apt-get install-y lxc-docker # update later: apt-get update-y lxc-dockerln-sf/usr/bin/docker/usr/local/bin/docker
Version information after upgrade: