ffffffff0x/f8x

ls: cannot access '/.dockerenv': No such file or directory

s1g0day opened this issue · 2 comments

我根据手册wget -O f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x
下载后可以正常f8x -h

但尝试安装基本环境时无法进行下去了,提示缺少/.dockerenv

root@rack: ~# cat  /tmp/f8x_error.log
2022-03-22
ls: cannot access '/.dockerenv': No such file or directory
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 

请问是先要安装docker后才能使用本工具吗

我在该项目下搜索dockerenv,发现使用了Docker_run_Check()函数

如果是的话,还请说明这点

我当前环境是

User          : root 
Date          : 2022-03-22 
Time          : 07:13:20 
Runtime       : 3days 
Distribution  : Ubuntu 18.04 bionic linux-x86_64
f8x Version   : 1.6.1 Dev(Beta2) 

后续更改为未安装docker的centos服务器又可以使用了

User          : root 
Date          : 2022-03-22 
Time          : 15:18:07 
Runtime       : 64days 
Distribution  : CentOS 7  linux-x86_64
f8x Version   : 1.6.1 Dev(Beta2) 

自我判断:应该不依赖docker

你好,已看到你反馈的问题

  1. Docker_run_Check 是用于检查是否在 docker 环境下运行的,并非代表 f8x 需要安装 docker 后才可运行
  2. 根据log中的内容显示,dpkg被中断,这个是系统 apt 包管理软件那块的问题,提示运行 dpkg --configure -a 解决问题,师傅可以运行下该命令后在重新运行 f8x -b

我是尝试过那个命令之后发现没用才转移到centos环境的,可能是服务器的问题,现在centos用的杠杠的