当前位置:论坛首页 > Linux面板 > 求助

【已解答】安装docker失败

发表在 Linux面板2024-1-16 11:58 [复制链接] 2 1059

安装docker失败,不知道啥原因make[1]: Leaving directory `/root/libiconv-1.14/po'cd man && make install prefix='/usr/local/libiconv' exec_prefix='/usr/local/libiconv' datarootdir='/usr/local/libiconv/share' datadir='/usr/local/libiconv/share' mandir='/usr/local/libiconv/share/man'make[1]: Entering directory `/root/libiconv-1.14/man'if [ ! -d /usr/local/libiconv/share/man/man1 ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/local/libiconv/share/man/man1 ; fimkdir -p -- /usr/local/libiconv/share/man/man1builddir="`pwd`"; cd . && for f in *.1 ; do (cd "$builddir"; echo /bin/install -c -m 644 ./$f /usr/local/libiconv/share/man/man1/$f ; /bin/install -c -m 644 ./$f /usr/local/libiconv/share/man/man1/$f) ; done/bin/install -c -m 644 ./iconv.1 /usr/local/libiconv/share/man/man1/iconv.1if [ ! -d /usr/local/libiconv/share/man/man3 ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/local/libiconv/share/man/man3 ; fimkdir -p -- /usr/local/libiconv/share/man/man3builddir="`pwd`"; cd . && for f in *.3 ; do (cd "$builddir"; echo /bin/install -c -m 644 ./$f /usr/local/libiconv/share/man/man3/$f ; /bin/install -c -m 644 ./$f /usr/local/libiconv/share/man/man3/$f) ; done/bin/install -c -m 644 ./iconv.3 /usr/local/libiconv/share/man/man3/iconv.3/bin/install -c -m 644 ./iconv_close.3 /usr/local/libiconv/share/man/man3/iconv_close.3/bin/install -c -m 644 ./iconvctl.3 /usr/local/libiconv/share/man/man3/iconvctl.3/bin/install -c -m 644 ./iconv_open.3 /usr/local/libiconv/share/man/man3/iconv_open.3/bin/install -c -m 644 ./iconv_open_into.3 /usr/local/libiconv/share/man/man3/iconv_open_into.3if [ ! -d /usr/local/libiconv/share/doc/libiconv ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/local/libiconv/share/doc/libiconv ; fimkdir -p -- /usr/local/libiconv/share/doc/libiconvbuilddir="`pwd`"; cd . && for f in *.html ; do (cd "$builddir"; echo /bin/install -c -m 644 ./$f /usr/local/libiconv/share/doc/libiconv/$f ; /bin/install -c -m 644 ./$f /usr/local/libiconv/share/doc/libiconv/$f) ; done/bin/install -c -m 644 ./iconv.1.html /usr/local/libiconv/share/doc/libiconv/iconv.1.html/bin/install -c -m 644 ./iconv.3.html /usr/local/libiconv/share/doc/libiconv/iconv.3.html/bin/install -c -m 644 ./iconv_close.3.html /usr/local/libiconv/share/doc/libiconv/iconv_close.3.html/bin/install -c -m 644 ./iconvctl.3.html /usr/local/libiconv/share/doc/libiconv/iconvctl.3.html/bin/install -c -m 644 ./iconv_open.3.html /usr/local/libiconv/share/doc/libiconv/iconv_open.3.html/bin/install -c -m 644 ./iconv_open_into.3.html /usr/local/libiconv/share/doc/libiconv/iconv_open_into.3.htmlmake[1]: Leaving directory `/root/libiconv-1.14/man'/www/server/panel/install/install_soft.sh: line 24: docker_install.sh: No such file or directory|-Successify --- 命令已执行! ---

使用道具 举报 只看该作者 回复
发表于 2024-1-16 14:12:54 | 显示全部楼层
尝试手动安装:
  1. Ubuntu/Debian
  2. 1、删除之前安装的docker
  3. apt-get remove docker docker-engine docker.io
  4. 2、安装依赖
  5. apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  6. 3、添加信任的依赖(debian)
  7. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  8. Ubuntu:
  9. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  10. 4、添加软件仓库(debian)
  11. add-apt-repository \
  12.    "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
  13.    $(lsb_release -cs) \
  14.    stable"
  15. Ubuntu:
  16. add-apt-repository \
  17.    "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
  18.    $(lsb_release -cs) \
  19.    stable"

  20. 5、安装
  21. apt-get update
  22. apt-get install docker-ce
复制代码
  1. CentOS/RedHat
  2. 1、删除之前安装的docker
  3. yum remove docker docker-common docker-selinux docker-engine
  4. 2、安装一些依赖
  5. yum install -y yum-utils device-mapper-persistent-data lvm2 wget
  6. 3、配置docker的安装源
  7. wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
  8. 4、将安装源替换成清华源
  9. sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
  10. 5、安装
  11. yum makecache fast
  12. yum install docker-ce
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-1-30 02:14:47 | 显示全部楼层
这个命令安装不了 不会开机自启动
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表