Docker Toss-linux under installation

Source: Internet
Author: User
Tags docker run

How to install under Linux

Bloggers use CENTOS7, others are very similar.

I am based on the official website of the tutorial to do the operation, the address is

https://docs.docker.com/engine/installation/linux/centos/#install-using-the-repository

At first they balabala a whole lot, to be aware that in x64 CentOS can install Docker

The official offers two ways to install with a storage repository, one to install from a package, and two to install, but the first is officially recommended.

We need to hit a bunch of orders.

1

sudo yum install-y yum-utils device-mapper-persistent-data lvm2

2

sudo yum-config-manager--enable Extras

3

sudo yum-config-manager \--add-repo \ Https://download.docker.com/linux/centos/docker-ce.repo

Then it can be installed, there will be two hints in the middle, directly y OK can

sudo yum install Docker

Wait a moment will be installed, the installation is actually completed, but for some reason we need to configure acceleration, then we have to change the/etc/docker/daemon.json file

After the completion, we need to reload the configuration file and then launch the Docker

sudo systemctl daemon-reload

sudo systemctl restart Docker

This can be a simple look at the effect

sudo Docker run Microsoft/dotnet-samples

It all ends here.

Docker Toss-linux under installation

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.