As the basic image in the process of image construction, the mountain image is becoming more and more important. The following are some examples of using the package management tool apk in alpine image:
1, apk-help command to view the complete package management command.
2.apk update: update the local mirror source index from the remote mirror source.
3.apk add: install the package and automatically resolve the dependency, or add the package from the third-party warehouse.
Alpine operating system is a security-oriented lightweight Linux distribution. It is different from the usual Linux distribution. Alpine uses Muslilibc and busybox to reduce the volume and runtime resource consumption of the system, but it is much more perfect than busybox in function, so it is favored by more and more open source communities.
While keeping slim, Alpine also provides its own software package management tool apk, which can query software package information through the website or directly query and install various software through the apk command.
Summarized as follows:
Alpine Linux Docker image is based on Alpine Linux operating system, which is a security-oriented lightweight Linux distribution. Different from the usual Linux distribution, Alpine Linux adopts Muslilibc and busybox to reduce the system scale and runtime resource consumption. While staying slim.
Alpine Linux also provides its own package management tool, apk, which can be queried on its website or directly queried and installed through the apk command.