首页 > 其他 > 详细

centos8飞行驾驶舱和docker安装

时间:2019-10-21 19:58:11      阅读:189      评论:0      收藏:0      [点我收藏+]

一、安装飞行驾驶舱

#yum install  -y *cockpit*

#systemctl start cockpit

# systemctl enable --now cockpit.socket

浏览器+ip+:9090

技术分享图片

 二、安装docker

[root@localhost ~]#  yum install -y docker-ce
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Docker CE Stable - x86_64                        11 kB/s |  20 kB     00:01    
错误:
 问题: package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.el7.x86_64 is excluded
  - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(try to add ‘--skip-broken‘ to skip uninstallable packages or ‘--nobest‘ to use not only best candidate packages)
解决办法:

下载docker rpm地址

https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

 [root@localhost ~]# rpm -ivh containerd.io-1.2.4-3.1.el7.x86_64.rpm
警告:containerd.io-1.2.4-3.1.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
错误:依赖检测失败:
    runc 与 containerd.io-1.2.4-3.1.el7.x86_64 冲突
    runc 被 containerd.io-1.2.4-3.1.el7.x86_64 取代
[root@localhost ~]# yum erase runc  (erase等价与remove,删除runc)

。。。。。

[root@localhost ~]# rpm -ivh containerd.io-1.2.4-3.1.el7.x86_64.rpm

[root@localhost ~]#  systemctl start docker.service
[root@localhost ~]# systemctl enable docker.service
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
[root@localhost ~]#  docker version
Client: Docker Engine - Community
 Version:           19.03.4
。。。。。
Server: Docker Engine - Community
。。。。。。
[root@localhost ~]# docker pull daocloud.io/library/nginx:1.7.9  (拉取镜像)

1.7.9: Pulling from library/nginx
a3ed95caeb02: Pull complete
6f5424ebd796: Pull complete
d15444df170a: Pull complete
e83f073daa67: Pull complete
a4d93e421023: Pull complete
084adbca2647: Pull complete
c9cec474c523: Pull complete
Digest: sha256:2204e6cc1bbcc3c5587aaada2c59819599847f1dbe5876dc21eba6764aa795ef
Status: Downloaded newer image for daocloud.io/library/nginx:1.7.9
daocloud.io/library/nginx:1.7.9

[root@localhost ~]# docker image list (查看镜像)
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
daocloud.io/library/nginx   1.7.9               84581e99d807        4 years ago         91.7MB
[root@localhost ~]# docker   run   -it   8458   /bin/bash (run为老命令)
root@f13c299e8ea1:/# ls
bin   dev  home  lib64    mnt  proc  run     selinux  sys  usr
boot  etc  lib     media    opt  root  sbin  srv      tmp  var


 

centos8飞行驾驶舱和docker安装

原文:https://www.cnblogs.com/zjz20/p/11715437.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!