CentOS 7 installs Docker and common commands

Source: Internet
Author: User
Tags docker ps docker run


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

Related Article

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.