Docker-slim gave images a slim posture.

Source: Internet
Author: User

Introduction

The images that we generate with Dockerfile or Docker builds are often large and consume a lot of disk space. Therefore, the advent of Docker-slim can help us to streamline the volume of Docker image.

1 Introduction of Docker-slim:

Docker-slime need to use Golang environment (recommended golang1.10+), click to visit Docker-slim official website.

1.1 Installation configuration of the Golang environment:

cd /optwget  https://dl.google.com/go/go1.10.linux-amd64.tar.gztar -xzvf go1.10.linux-amd64.tar.gzmkdir -p /usr/local/gocp -rfv /opt/go/* /usr/local/go/echo "export GOROOT=/opt/goexport GOPATH=/usr/local/go/src/pkgexport PATH=$GOROOT/bin:$PATH" >> /etc/profileln -s /usr/local/go/bin/go /usr/bin/gogo version
Docker-slim_dome.gif
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.