Install docker container under Centos server

1. Introduction to Docker

Docker is an open source application container engine that allows developers to package their applications into a portable container, and then publish to any popular Linux machine, which can also be virtualized. Containers are completely sandboxed and do not have any interface with each other. There is almost no performance overhead and can be easily run on machines and data centers. The most important thing is that they do not depend on any language, framework or system.

2. Docker installation

yum install docker-io
1
start docker

systemctl start docker
1
If the following warning occurs during startup

Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true`
1
设置/etc/sysconfig/docker-storage

vim /etc/sysconfig/docker-storage
1
 DOCKER_STORAGE_OPTIONS="--storage-opt dm.no_warn_on_loop_devices=true"
1
restart docker

systemctl start docker
1
Download the official Centos mirror to your local

docker pull centos:latest
1
Check if the mirror is installed successfully

docker images centos
1
run a docker container

docker run -i -t centos /bin/bash

http://blog.csdn.net/turtleo/article/details/49952185

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326709336&siteId=291194637