Docker experience installation under Ubuntu

Source: Internet
Author: User
Tags docker run

Brief introduction

A lightweight container similar to a virtual machine.
Official website https://www.docker.com
Officially there is an online simulation environment:
https://www.docker.com/tryit/

Installation

From the official website, it supports a very large number of operating systems, basically many I have not seen.
My test environment is Ubuntu Kylin 14.04

Demand

It is recommended to use 64-bit,kernel minimum 3.10, which can be viewed using uname-r

I use the Ubuntu version is relatively high, the official introduction can skip some operations.

The installation process installation requires Sudo permissions to determine that wget is installed

which wget
If not installed, use the
sudo apt-get update
sudo apt-get install wget
To install

Get package

wget-qo-https://get.docker.com/| Sh
Q followed by capital letter O

After the prompt succeeds, run:

sudo docker
Output:

Restart the system and run:

sudo Docker run Hello-world

It will download a test image and run it. I have been operating several times and finally downloaded it:
Tip a bit of a problem:

I deal with the rest time, the time is more tense, later to analyze the reason here.
Direct test using the official Ubuntu image

sudo docker pull Ubuntu
Run Hello World
sudo docker run Ubuntu/bin/echo Hello World

Take the time to continue studying again.

Docker experience installation under Ubuntu

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.