Ubuntu under Docker installation and version upgrade

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.