精简 linux 镜像,使用精简alpine linux系统构建docker镜像

# apk --help

apk-tools 2.6.9, compiled for x86_64.

usage: apk COMMAND [-h|--help] [-p|--root DIR]

[-X|--repository REPO] [-q|--quiet]

[-v|--verbose] [-i|--interactive]

[-V|--version] [-f|--force]

[-U|--update-cache] [--progress]

[--progress-fd FD] [--no-progress]

[--purge] [--allow-untrusted]

[--wait TIME] [--keys-dir KEYSDIR]

[--repositories-file REPOFILE]

[--no-network] [--no-cache]

[--arch ARCH] [--print-arch] [ARGS]...

The following commands are available:

add Add PACKAGEs to 'world' and install (or upgrade) them, while ensuring that all dependencies are met

del Remove PACKAGEs from 'world' and uninstall them

fix Repair package or upgrade it without modifying main dependencies

update Update repository indexes from all remote repositories

info Give detailed information about PACKAGEs or repositores

search Search package by PATTERNs or by indexed dependencies

upgrade Upgrade currently installed packages to match repositories

cache Download missing PACKAGEs to cache and/or delete unneeded files from cache

version Compare package versions (in installed database vs. available) or do tests on literal version strings index Create repository index file from FILEs

fetch Download PACKAGEs from global repositories to a local directory

audit Audit the directories for changes

verify Verify package integrity and signature

dot Generate graphviz graphs

policy Show repository policy for packages

stats Show statistics about repositories and installations

Global options:

-h, --help Show generic help or applet specific help

-p, --root DIR Install packages to DIR

-X, --repository REPO Use packages from REPO

-q, --quiet Print less information

-v, --verbose Print more information (can be doubled)

-i, --interactive Ask confirmation for certain operations

-V, --version Print program version and exit

-f, --force Do what was asked even if it looks dangerous

-U, --update-cache Update the repository cache

--progress Show a progress bar

--progress-fd FD Write progress to fd

--no-progress Disable progress bar even for TTYs

--purge Delete also modified configuration files (pkg removal) and uninstalled packages from cache (cache clean)

--allow-untrusted Install packages with untrusted signature or no signature

--wait TIME Wait for TIME seconds to get an exclusive repository lock before failing

--keys-dir KEYSDIR Override directory of trusted keys

--repositories-file REPOFILE Override repositories file

--no-network Do not use network (cache is still used)

--no-cache Read uncached index from network

--arch ARCH Use architecture with --root

--print-arch Print default arch and exit

This apk has coffee making abilities.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值