Installation
RPM-IVH http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Sed-i ' s/^mirrorlist=https/mirrorlist=http/'/etc/yum.repos.d/epel.repo
Yum-y Install Docker-io
Service Docker start
Basic commands
Docker search looks for mirrors in the warehouse
Docker Pull Fetch image
Docker Run Runtime container
Docker PS Viewing a running container
Docker ps-l View all containers
Docker commit to submit container image (with unique number to commit)
Docker inspect ID view container or mirror details, running all parameters of the container
to start an exit container : Docker start Containerid
Attach to a running container: Docker attach Containerid
Create a new container and log in: Docker run-i-T Image/bin/bash
Docker push saves a new image into the warehouse
If Yum does not specify the-y parameter, the yum command enters interactive mode and requires the user to enter a command to confirm that the interaction cannot be responded to in the Docker environment. But using the-i-t parameter of Docker run responds to this interaction, and the user can enter commands such as Docker run-i-T CentOS Yum install Net-tools
Startup configuration file
/etc/default/docker
This article from "Life, such as painting, Pen no regrets!" "Blog, be sure to keep this provenance http://521angela.blog.51cto.com/9680035/1783980
CentOS install Docker and Docker base commands