Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 484 Bytes

TODO.MD

File metadata and controls

14 lines (9 loc) · 484 Bytes

TDOO

using docker-slim to simplify the image

  • git repo https://github.com/docker-slim/docker-slim#running-containerized

  • basic use:

    docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/docker-slim build your-docker-image-name

    使用docker-slim构建能减小镜像的大小,并且可以节省空间,使用上面的命令构建的为891MB,直接用docker构建为976MB,没有达到预期效果. [x]TODO:使用其他参数调试.