docker centos 容器配置
2022/9/5 5:52:54
本文主要是介绍docker centos 容器配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
linux ifconfig命令不能使用
1,yum provides ifconfig 来查看那个包提高ifconfig,并安装一下。
编辑
2,yum install net-tools
编辑
3,输入ifconfig测试一下,ok了
解决Failed to download metadata for repo ‘AppStream’
排查/etc/yum.repos.d
目录下这三个文件:
CentOS-Base.repo
CentOS-AppStream.repo
CentOS-Extras.repo
如果上述三个文件中含有 mirrorlist 字段,将这些字段进行注释,并将 baseurl 修改为国内的软件源,阿里云baseurl=https://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
或者腾讯云baseurl=https://mirrors.tencentyun.com/centos/$releasever/BaseOS/$basearch/os/
阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区
关闭防火墙
这篇关于docker centos 容器配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-28duckdns docker
- 2024-03-21docker add host
- 2024-03-14denied: requested access to the resource is denied docker push
- 2024-03-07docker graylog
- 2024-03-05Docker容器实战(00)-基础命令大全
- 2024-03-01dockerd-entrypoint.sh
- 2024-02-23linux mint install docker
- 2024-01-18angular docker
- 2024-01-10优雅而强力地卸载docker-desktop
- 2024-01-09完蛋,我被挖矿木马包围了|使用 TLS 连接 Docker