Installing and using Docker on Ubuntu16.04

Source: Internet
Author: User
Tags docker run

Introduced

Docker is an open source software project that allows applications to automate their work under the software container, providing an additional layer of software abstraction on the Linux operating system and an automated management mechanism for operating system-level virtualization [1]. Docker uses resource-splitting mechanisms in the Linux core, such as Cgroups, and the Linux core namespace (name space) to create a separate software container (containers). This can work under a single Linux entity, avoiding the additional burden of booting a virtual machine [2]. Linux core support for namespaces completely isolates the view of applications in the work environment, including process trees, networks, user IDs, and mounted file systems, while the core Cgroup provides resource isolation, including CPU, memory, block I/O, and networking. Starting with the 0.9 release, Dockers began to include the Libcontainer library as a way to start directly using the virtualization facilities provided by the Linux core, based on the Libvirt LXC and Systemd-nspawn, using abstract virtualization.

According to the industry Analysis company "451 Research": "Dockers is a dependency tool capable of packaging applications and their virtual containers that can run on any Linux server, which facilitates flexibility and portability, which can be run anywhere, whether public cloud, private cloud, standalone, etc. ”

Installation Requirements

64-bit system

Users that can use sudo

Installation

First step: Set up the Package Manager warehouse

Set up a Docker repository on Ubuntu. Lsb_release-cs can display your Ubuntu version, such as Xenial or trusty.

After the settings are complete, update the package Manager.

sudo  Install Apt-transport-https ca-certificatescurl  -fssl https://  DOWNLOAD.DOCKER.COM/LINUX/UBUNTU/GPG | sudo apt-key add-sudoinstall software-properties-sudo  "  Deb [ARCH=AMD64] Https://download.docker.com/linux/ubuntu $ (lsb_release-cs) stable" sudo apt-get udate

Step Two: Install Docker

sudo Install Docker-ce

Step Three: Test

sudo Docker run Hello-world

Fourth: No sudo execution of Docker commands (not necessary)

sudo ' your user name '

Installing and using Docker on Ubuntu16.04

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.