Giter Site home page Giter Site logo

Comments (7)

fscarmen2 avatar fscarmen2 commented on July 3, 2024 1

已处理,在 entrypoint.sh 的最后面改为

generate_autodel() {
  cat > auto_del.sh <<EOF
while true; do
  rm -rf /app/.git
  sleep 5
done
EOF
}

......
generate_autodel

......
[ -e auto_del.sh ] && bash auto_del.sh

from x-for-glitch.

fscarmen2 avatar fscarmen2 commented on July 3, 2024

这个目录应该与脚本无关,里面都有些什么文件,我也发现磁盘空间不足的问题,但没有详细查是哪里出问题,不太好查,只有200 MB给用。如果是这个目录下的,我处理一下,定时删除该目录。

from x-for-glitch.

yidasanqian avatar yidasanqian commented on July 3, 2024

这个目录应该与脚本无关,里面都有些什么文件,我也发现磁盘空间不足的问题,但没有详细查是哪里出问题,不太好查,只有200 MB给用。如果是这个目录下的,我处理一下,定时删除该目录。

你可以进入这个目录下看看,会一直增加文件大小,不知道什么原因,我之前删除了,现在又出现了,加个定时删除该目录的脚本应该可以解决磁盘空间不足的问题

from x-for-glitch.

fscarmen2 avatar fscarmen2 commented on July 3, 2024

这里的文件夹我不知道是什么来的,不太敢乱删。

from x-for-glitch.

fscarmen2 avatar fscarmen2 commented on July 3, 2024

能不能再细致点查到哪些文件变大或者增加?

from x-for-glitch.

fscarmen2 avatar fscarmen2 commented on July 3, 2024

/app/.git

我现在运行了 rm -rf /app/.git; touch /app/.git,先删除了该目录,再强行建一个文件,让系统建不了该目录和放数据,过几天看看是否正常,如果正常,再更新一下脚本。你也可以手动试试

from x-for-glitch.

yidasanqian avatar yidasanqian commented on July 3, 2024

/app/.git

我现在运行了 rm -rf /app/.git; touch /app/.git,先删除了该目录,再强行建一个文件,让系统建不了该目录和放数据,过几天看看是否正常,如果正常,再更新一下脚本。你也可以手动试试

嗯,我试试

from x-for-glitch.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.