Installation under way docker docker learning -centos

Foreword

I want to do on a cloud server asp.net core of webapi application, use docker to deploy applications, including any component used in the middle of nginx and sqlserver 2017 are loaded to run with docker, so this is probably a step on DOCKER Hang up the road.

This series of articles will be the first record some basic operations docker, followed by combat.

Under CentOS installation Docker

I am using CentOS, so here are some notes column is based on CentOS to do. CentOS version is 7.2.

Docker currently supports CentOS7 and later. Ubuntu system requirements with a similar situation, 64-bit operating system, kernel version is at least 3.10. First, in order to facilitate adding source software, and support devicemapper storage type, install the following packages:

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

Add Docker stable version of the package source:

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

After updating the software source cache, and install docker:

sudo yum update
sudo yum install -y docker-ce

Final confirmation docker services start correctly:

sudo systemctl start docker

Configuration docker Service

To avoid the need to switch to command each time you use the Docker privileged status, the current user can be added to the user group docker installation automatically creates the code is as follows:

sudo usermod -aG docker USER_NAME

User group information update, quit or change the current user and then log back in to take effect.

When the service starts Docker actually called dockerd command, support a variety of startup parameters. Therefore, the user can directly start by executing the command dockerd Docker services, such as the following command to start the Docker service, open the Debug mode, and listening at the local port of 2376:

dockerd -D -H tcp://127.0.0.1:2376

 

Guess you like

Origin www.cnblogs.com/pangjianxin/p/10945332.html