larsks / dockerize

A tool for creating minimal docker images from dynamic ELF binaries.
GNU General Public License v3.0
355 stars 41 forks source link

dockerize do not recognize dependencies on debian #22

Open cz172638 opened 4 years ago

cz172638 commented 4 years ago

reproducer: on debian buster: install podman from repository mentioned in https://podman.io/getting-started/installation in debian section.

$ apt install python3-jinja2 python3-pyelftools tcpdump
$ pip3 install --user git+https://github.com/larsks/dockerize
$ dockerize -t tcpdump:buster-amd64-latest /usr/sbin/tcpdump
$ podman diff $(podman image list -n localhost/tcpdump:buster-amd64-latest --format "{{.ID}}")
A /Dockerfile
A /etc
A /etc/group
A /etc/nsswitch.conf
A /etc/passwd
A /usr
A /usr/sbin
A /usr/sbin/tcpdump
$ 
cz172638 commented 4 years ago

forgot mention:

$ sudo -i
# pushd /usr/bin
# ln -s podman docker
# exit