Estoy ejecutando un contenedor docker desde una imagen alpine-linux. Contiene zcat
pero no zless
y zgrep
. ¿Cómo instalarlo en el contenedor?
Suponiendo una imagen nueva, actualice el índice del paquete:
apk update
Luego agregue el paquete gzip, que contiene zless
, zgrep
, etc.:
apk add gzip
Vea el contenido del paquete aquí: https://pkgs.alpinelinux.org/contents?branch=v3.5&name=gzip&arch=aarch64&repo=main
Si se pregunta por qué se incluye zcat
pero no las otras herramientas, aunque zcat
está en el paquete gzip
, se incluye como parte de otro paquete:
/ # apk info --who-owns $(which zcat) /bin/zcat symlink target is owned by busybox-1.25.1-r0