Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

336
Vistas
How to check if libpcap installed in Alphine docker container

I installed libpcap in my container using below docker file using docker file below. How do I make sure it was installed and working as expected?

I tried below with the hope to see libpcap

D:\work >docker exec -u 0 -it containerId sh

/app # cd /etc/apk

/etc/apk # cat repositories

http://dl-cdn.alpinelinux.org/alpine/v3.8/main

http://dl-cdn.alpinelinux.org/alpine/v3.8/community

/etc/apk # 

Below is my docker file

FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build

# Install packages
RUN apk update
RUN apk -U --no-cache add libpcap

Running the apk info command has below output

WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory

WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory

musl

busybox

alpine-baselayout

alpine-keys

libressl2.7-libcrypto

libressl2.7-libssl

libressl2.7-libtls

ssl_client

zlib

apk-tools

scanelf

musl-utils

libc-utils

ca-certificates

krb5-conf

libcom_err

keyutils-libs

libverto

krb5-libs

libgcc

libintl

libcrypto1.0

libssl1.0

libstdc++

userspace-rcu

lttng-ust

tzdata

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Run docker exec command and try this

$ apk info

This will list all the installed packages in alpine.

I can see libcap in the output.

If you still can't see the package. Make sure you have run apk update before installing libcap

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda