mac centos虚拟机上安装docker遇见的问题

centos7下载地址:http://mirrors.aliyun.com/centos/7/isos/x86_64/

1.查看docker列表

yum list installed | grep docker

2.安装

yum -y install docker

3.启动

systemctl start docker

4.查看

systemctl status docker

可能遇见的问题

1.在安装完镜像后,发现不能使用鼠标,并且复制粘贴方式也和mac不同,想通过自带的远程连接显示,需要获取到IP地址。

ip查看:ip addr

发现没有ip地址,可以通过下面的链接修改:

https://blog.youkuaiyun.com/dancheren/article/details/73611878

修改后就能正常连接了。

2.安装docker时出现fastestmirror错误

参考:https://www.cnblogs.com/xiaochina/p/6418325.html
1.修改插件配置文件

[root@localhost yum.repos.d]# vim /etc/yum/pluginconf.d/fastestmirror.conf

[main]
enabled=0 //由 1 改成0 ,禁用该插件
verbose=0
always_print_best_host = true
socket_timeout=3
#Relative paths are relative to the cachedir (and so works for users as well
#as root).
hostfilepath=timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
#include_only=.nl,.de,.uk,.ie

2.修改yum 配置文件

[root@localhost yum.repos.d]# vim /etc/yum.conf
9 plugins=0 //不使用插件

  1. 清除缓存并重新构建yum 源

[root@localhost yum.repos.d]# yum clean all

[root@localhost yum.repos.d]# yum makecache

  1. 使用yum 重新安装
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值