Centos7.1 install docker

Source: Internet
Author: User

Centos7.1 install docker
# View centos version uname-a yum-y update
# Install docker curl-sSL https://get.docker.com/| sh yum install-y docker-selinux
# View the docker version docker -- version
# Start docker service systemctl start docker. service
# Docker run hello-world
# Configure Docker auto-start: systemctl enable docker. service
# Docker images
# Search for the official repository centos image docker search centos
# Pull official image. Sometimes you need to try sudo docker pull centos several times for network problems
# Run as a terminal; check the id first; or you can directly use the [REPOSITORY]: [tag] method [root @ localhost/]
# Docker images repository tag image id created size centos latest 8596123a638e 12 days ago 196.7 MB hello-world latest 94df4f0ce8a4 4 weeks ago 967 B sudo docker run-it 8596123a638e/bin/

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.