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/*Last updated
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/*Last updated