这几天在折腾aapanel,但docker这个是必装的环境,但奇怪了每次安装都是提示错误,看了下日志
docker_install.sh: line 53: : No such file or directory
docker_install.sh: line 53: : No such file or directory
docker_install.sh: line 53: : No such file or directory
docker_install.sh: line 53: : No such file or directory
No mirrors available.
找了些资料看了下,解决办法如下:
cd /www/server/panel/install
修改docker的安装脚本
nano docker_install.sh
找到脚本的第53行
echo "${TIME_TOTAL} ${mirror_name}" >>"${tmp_file1}"
将里面的tmp_file1修改成tmp_file
echo "${TIME_TOTAL} ${mirror_name}" >>"${tmp_file}"
按照这样,把59和62行的也将tmp_file1修改成tmp_file并保存,完成后运行命令安装即可完成。
sh docker_install.sh install