SpringBoot 二、Docker安装,启动,下载images

上午虚拟机搞定,开始Docker 之旅

首先 uname -r 查看版本号,Docker 要求CentOS内核3.10

[root@localhost ~]# uname -r
3.10.0-327.el7.x86_64

    yum install docker 安装

二 servicectl start docker 启动报错

Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer
 kernel or disable selinux in docker (--selinux-enabled=false)

打开docker 配置文件修改-selinux-enabled=false,重启启动成功

刚开始看这一长串报错可真懵逼

设置开启启动
[root@localhost ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

三、

搜索镜像,也可以到docker hub 搜索 Search the Docker Hub for image

或是docker仓库https://store.docker.com/

[root@localhost ~]# docker search tomcat
INDEX       NAME                                            DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/tomcat                                Apache Tomcat is an open source implementa...   1902      [OK]       
docker.io   docker.io/tomee                                 Apache TomEE is an all-Apache Java EE cert...   51        [OK]       
docker.io   docker.io/dordoka/tomcat                        Ubuntu 14.04, Oracle JDK 8 and Tomcat 8 ba...   49                   [OK]
         

下载tomcat

[root@localhost ~]# docker pull tomcat

docker images 查看所有镜像

[root@localhost ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
docker.io/tomcat    latest              df50c9d355cf        4 days ago          463 MB




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值