centos7-安装docker-compose 报错/lib64/libc.so.6: version `GLIBC_2.28‘ not found

新增安装的centos7虚拟机,按要求需要安装docker-compose,遇到了使用docker-compose命令时报错
“[11798] Error loading Python lib ‘/tmp/_MEIztwHzf/libpython3.9.so.1.0’: dlopen: /lib64/libc.so.6: version ‘GLIBC_2.28’ not found (required by /tmp/_MEIztwHzf/libpython3.9.so.1.0)”,
然后有下载glibc-2.28进行安装又遇到报错
“configure: error: in `/root/test/glibc-2.28/build’:
configure: error: no acceptable C compiler found in $PATH” ,
然后按照论坛的推荐安装了yum install gcc,后又报错
“These critical programs are missing or too old: make bison compiler
Check the INSTALL file for required versions.”,
后面安装了升级了make和bison,仍然继续报错“These critical programs are missing or too old: compiler
Check the INSTALL file for required versions.”确实脑壳都爆了。
偶然翻得一篇文章https://blog.csdn.net/u012149637/article/details/112968173解决了我的问题,现将整个安装流程及问题解决整理一遍。

1.开通外网
2.安装docker
3.docker-compose
4.centos升级GCC编译器
5.升级make
6.安装glibc-2.28

1.开启外网

1.1打开网络:

/etc/sysconfig/network-scripts/ifcfg-ens33

修改NOBOOT为yes

1.2重启网络:

service  network restart

2安装docker:

2.1docker安装

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

你可能感兴趣的:(docker,docker,centos)