Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

337
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!