Using CentOS7 mirrors in Docker _centos

Source: Internet
Author: User
Tags docker ps docker run

Since the operating system will be upgraded from CentOS6.4 to CentOS7, first try the CentOS7. Start Container Service

Systemctl Start  Docker.service
Download CentOS7 Mirrors
[root@wxtest1607 ~]# Docker Pull centos:7.2.1511 [root@wxtest1607 lixr]# Docker Images-REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
centos                    7.2.1511            686672a1d0cc        7 weeks ago         194.6 MB
Download Source: https://hub.docker.com/Login Docker CentOS7
Docker Run-ti 6866/bin/bash
#6866 is the first four digits of the image ID-to distinguish which image can be
root@b4ad1d1c87da/]# 
#登录成功, Then you can do whatever you want.
Check the CENTOS7 system
Root@b4ad1d1c87da  /]# uname-a
Linux b4ad1d1c87da 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 22:10:57 UTC 2015 x86_ x86_64 x86_64 gnu/linux
[root@b4ad1d1c87da/]# cat/etc/redhat-release CentOS 
Linux release 7.2.1511 (Core)
Exit and then enter CENTOS7
[root@wxtest1607 ~]# Docker ps-a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
b4ad1d1c87da        6866                "/bin/bash"         seconds ago up      9
               seconds Mad_swanson drunk_ Hypatia
[root@wxtest1607 ~]# Docker exec-ti b4ad/bin/bash
[Root@b4ad1d1c87da/]#

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.