Get the App
SLTechnology News&Howtos  ›  Servers  › 

3-6 dkfile Grammar carding and Best practices

Shulou Source: shulou.com Published: 2022-06-02 19:31:06 11月15日 Update

Create your own docker image through dockerfile

From

Try to use the official image as the base image

Label metadata is indispensable, similar to comments in code.

Run is used to install the software, and every time run is run, it is a new layer for image.

Workdir

The use of env can increase maintainability and should be used as much as possible

Https://github.com/docker-library/mysql

Https://github.com/docker-library/redis

Tags: Code maintainability official comments software running syntax practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MariaDB Shulou Information NVidia Docker