How understand that deb packages was success installed in container?

Here my Dockerfile

FROM postgres:latest

create folder Downloads

WORKDIR /Downloads

COPY /plv8_v.2.x ./Downloads

RUN dpkg -i Downloads/plv8-96_2.1.0-2_amd64.deb
RUN dpkg -i Downloads/v8_3.14.5.10-26_amd64.deb

As you can see in Docker container install 2 deb files. OK.

But how I can understand that this 2 deb packages was success installed?
Maybe some logs or smt else?

You run a container from the image and use dpkg -l | grep plv8 or whatever the package name is after installation.

You can also use docker sbom


which will parse the image and list the found packages.

It is very unlikely though that the deb packages are not installed as it would return an error code and the build process would fail.

1 Like