📒
Notes
  • 个人笔记
  • Machine Learning
    • Tensorflow
      • Text
        • Keras构建RNN
        • 字词嵌入
        • 字词嵌入示例程序
      • Data processing
        • tf.data数据加载
      • Tensorflow Tricks
    • 循环神经网络概览
    • Pix2Pix
  • Assembly Language
    • DOS中的Debug模式
    • LOOP指令
    • 8086CPU
    • 标志位寄存器
    • 汇编指令
    • 汇编语言源程序格式
  • Linux System
    • Systemctl 服务脚本
    • Linux端口占用
    • Btrfs文件系统
    • C Socket网络编程细节问题
  • Hexo
    • Hexo下的Tag/Categories栏
    • Git备份博客
    • Hexo博客基本部署
  • Kernel
    • C语言中消息队列实现
    • Linux内核的进程调度函数
    • Linux内核模块的编译
    • Linux Kernel概述
  • Linux Software
    • Linux软件安装与配置
  • Docker
    • OVS+Docker网络构建
    • Docker分层垃圾清理
  • C
    • CMakeList语法
Powered by GitBook
On this page

Was this helpful?

  1. Docker

Docker分层垃圾清理

由于Docker的文件系统是分层结构,所以过去分层中的垃圾会一直占用空间,使得镜像变得臃肿。对于各层产生的垃圾,一定要就地完成清理。

apt-get 产生的垃圾

RUN apt-get update \
    && apt install xxx \
    && ... \
    && apt-get autoclean [Warning] IPv4 forwarding is disabled. Networking will not work.\
    && rm -rf /var/lib/apt/lists/*
PreviousOVS+Docker网络构建NextC

Last updated 5 years ago

Was this helpful?