centos7下安装docker的步骤

发布时间:2021-08-18 14:03:34 作者:chen
来源:亿速云 阅读:108

这篇文章主要介绍“centos7下安装docker的步骤”,在日常操作中,相信很多人在centos7下安装docker的步骤问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”centos7下安装docker的步骤”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

1.安装

[root@ticent ~]# yum install docker
......省略一万字
完毕!
[root@ticent ~]# 
2.启动
[root@ticent ~]# service docker start
3.

[root@ticent ~]# docker search centos
INDEX       NAME                                             DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/centos                                 The official build of CentOS.                   3435      [OK]       
docker.io   docker.io/jdeathe/centos-ssh                     CentOS-6 6.9 x86_64 / CentOS-7 7.3.1611 x8...   74                   [OK]
docker.io   docker.io/nimmis/java-centos                     This is docker images of CentOS 7 with dif...   26                   [OK]
docker.io   docker.io/gluster/gluster-centos                 Official GlusterFS Image [ CentOS-7 +  Glu...   19                   [OK]
docker.io   docker.io/kinogmt/centos-ssh                     CentOS with SSH                                 15                   [OK]
docker.io   docker.io/egyptianbman/docker-centos-nginx-php   A simple and highly configurable docker co...   9                    [OK]
docker.io   docker.io/torusware/speedus-centos               Always updated official CentOS docker imag...   8                    [OK]
docker.io   docker.io/nathonfowlie/centos-jre                Latest CentOS image with the JRE pre-insta...   6                    [OK]
docker.io   docker.io/centos/mariadb55-centos7                                                               5                    [OK]
docker.io   docker.io/consol/sakuli-centos-xfce              Sakuli JavaScript based end-2-end testing ...   3                    [OK]
docker.io   docker.io/darksheer/centos                       Base Centos Image -- Updated hourly             3                    [OK]
docker.io   docker.io/harisekhon/centos-java                 Java on CentOS (OpenJDK, tags jre/jdk7-8)       2                    [OK]
docker.io   docker.io/harisekhon/centos-scala                Scala + CentOS (OpenJDK tags 2.10-jre7 - 2...   2                    [OK]
docker.io   docker.io/blacklabelops/centos                   CentOS Base Image! Built and Updates Daily!     1                    [OK]
docker.io   docker.io/freenas/centos                         Simple CentOS Linux interactive container       1                    [OK]
docker.io   docker.io/timhughes/centos                       Centos with systemd installed and running       1                    [OK]
docker.io   docker.io/vorakl/centos                          CentOS7, EPEL, tools. Updated/Tested daily!     1                    [OK]
docker.io   docker.io/grayzone/centos                        auto build for centos.                          0                    [OK]
docker.io   docker.io/grossws/centos                         CentOS 6 and 7 base images with gosu and l...   0                    [OK]
docker.io   docker.io/januswel/centos                        yum update-ed CentOS image                      0                    [OK]
docker.io   docker.io/kz8s/centos                            Official CentOS plus epel-release               0                    [OK]
docker.io   docker.io/repositoryjp/centos                    Docker Image for CentOS.                        0                    [OK]
docker.io   docker.io/smartentry/centos                      centos with smartentry                          0                    [OK]
docker.io   docker.io/vcatechnology/centos                   A CentOS Image which is updated daily           0                    [OK]
docker.io   docker.io/vcatechnology/centos-ci                A CentOS image that is used in the VCA Tec...   0                    [OK]
[root@ticent ~]# 
[root@ticent ~]# docker pull centos:latest
Trying to pull repository docker.io/library/centos ... 
latest: Pulling from docker.io/library/centos
d5e46245fe40: Pull complete 
Digest: sha256:aebf12af704307dfa0079b3babdca8d7e8ff6564696882bcb5d11f1d461f9ee9

[root@ticent ~]# docker images centos
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
docker.io/centos    latest              3bee3060bfc8        3 weeks ago         192.5 MB

[root@ticent ~]# docker run -i -t centos:latest /bin/bash

到此,关于“centos7下安装docker的步骤”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!

推荐阅读:
  1. Centos7下安装jdk的步骤
  2. Linux下安装Docker的详细步骤

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

centos7 docker

上一篇:javascript如何填充默认头像

下一篇:Three.js中网格对象MESH属性与方法的示例分析

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》