CentOS 7 installs Docker and common commands
Yum Install Docker #安装docker
Systemctl Start Docker.service #启动docker
Systemctl Enable Docker.service #docker开机启动
Docker-v #查看docker版本
Docker Info #查看docker具体信息
Docker pull CentOS #下载centos image
Docker Images #显示已有image
Docker RMI imageID #删除image
sudo usermod-a-G Docker wisely #非root用户使用
Docker run-i-T Centos/bin/bash #启动系统
Docker stop $ (Docker ps-a-Q) #停止所有容器
Docker RM $ (Docker ps-a-Q) #删除所有container
Docker RMI $ (Docker images-q) #删除所有image
Docker Inspect Container_name #查看容器信息
Docker Inspect Container_name | grep IPAddress #查看当前容器ip地地址
Docker Attach--sig-proxy=false 304f5db405ec (press control +c exit does not stop the container)
This article is from the "eyes engraved with your Smile" blog, please be sure to keep this source http://dengaosky.blog.51cto.com/9215128/1854130
CentOS 7 installs Docker and common commands