Ubuntu under Docker installation and version upgrade
First, the system environment
System: Ubuntu-server 14.04 x86_64
Kernel: 3.13.0-32-generic
Second, Docker installation
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/59/C3/wKioL1TgVdLBhTMZAAF4lhe8Az0066.jpg "title=" Qq20150215161040.jpg "alt=" Wkiol1tgvdlbhtmzaaf4lhe8az0066.jpg "/>
---------------------------------------------------------------------------------
To install the latest version of Docker you need to use a Docker source to install
$ sudo su-root
# Apt-get-y Installapt-transport-https
# apt-keyadv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
# bash-c "Echo Debhttps://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
# Apt-get Update
# apt-get-y Install Lxc-docker
# docker-v// View the Docker version
# Ps-ef | grep Docker
Root 17311 1 0 Feb13? 00:00:43/usr/bin/docker-d
Third, the old version of Docker upgrade
Note: Docker installed with Ubuntu Source cannot be upgraded to the latest version, because the Ubuntu source is not the latest version of Docker
Note: All running containers in the upgrade are automatically closed, preferably before upgrading the container.
# apt-getupdate
Here are two ways to upgrade:
# apt-get-u-y upgrade Lxc-docker Security Upgrades
# apt-get-u-y dist-upgrade lxc-docker A security upgrade failure can be used to resolve a dependency package upgrade
# docker-v// View the Docker version
This article is from the "on the Road" blog, please be sure to keep this source http://beijing0414.blog.51cto.com/8612563/1614573
Ubuntu under Docker installation and version upgrade