Installation deployment and validation of Docker under LinuxMint

Source: Internet
Author: User
Tags docker hub docker run

View the following my linuxmint release through the lsb_release command,

Check out the following versions of my Linux kernel,

Docker requires that the Linux kernel version must be above 3.10 , and obviously our system is satisfied.

1. Dockerinstallation

The operating system's default apt Source has a Docker package, and we can install Docker directly using the apt-get command below ,

sudo Install -y Docker.io

However, the installation of the version is relatively old. We use the following two ways to install, personal comparison recommended the second, the second way to install the latest.

1.1fromDockerof theAptSource Installation

Refer to the page https://get.docker.com/ubuntu/ content to install, for the convenience of directly copying the content as follows,

# Check that HTTPS transport are available to APT
if [!-e/usr/lib/apt/methods/https]; Then
Apt-get Update
Apt-get install-y Apt-transport-https
Fi

# ADD The repository to your APT sources
Echo Deb Https://get.docker.com/ubuntu Docker main >/etc/apt/sources.list.d/docker.list

# then import the repository key
Apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9

# Install Docker
Apt-get Update
Apt-get install-y Lxc-docker

The Docker version currently installed from the apt source of Docker is 1.7.1.

1.2 Curlinstallation

Website https://get.docker.com provides curl-able installation script install.sh, which we can Curl the way to install Docker. Let's install Curlfirst,

sudo apt-sudoinstall Curl

Then run the following command to install Docker,

$ curl-k-ssl https:///get.docker.com | sudo sh

The Docker version installed in this manner is 1.8.3, as shown below,

2. DockerValidation

after the Docker installation is complete, let's verify the following Docker features. The official Docker Hub provides a hello-world image that we can use to verify that we have properly installed Docker .

[Email protected] ~ $sudoDocker Run hello-Worldhello from Docker.this message shows this your installation appears to be working correctly. To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the"Hello-world"image from the Docker Hub.3. The Docker daemon created a new container from that imagewhichruns the executable that produces the output is currently reading.4. The Docker daemon streamed that output to the Docker client,whichsent it to your terminal. To try something Moreambitious, you can run a Ubuntu container with: $ docker run-it ubuntu bashshare images, automate workflows, and MoreWith a FreeDocker Hub Account:https://hub.docker.com for Moreexamples and ideas, Visit:https://docs.docker.com/userguide/

The above printed information indicates thatDocker is working properly.

3.PostScript

With Docker , if we verify some of the features under Linux, we don't want to pollute our hosting environment. Then we can start a container for the Linux Environment and then operate it inside. After the operation is finished, the container can be killed directly. Safe, convenient and fast!

For example, start an Ubuntu 14.04 container and go directly to the container, and then we can manipulate it in the container.

sudo docker run-ti--name myubuntu ubuntu:14.04

(done)

* * Version statement: This blog post for the original, if you want to reprint, please ask the blogger to agree beforehand.

Installation deployment and validation of Docker under LinuxMint

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.