Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest Clair Docker image does not publish any ports #68

Closed
pbielicki opened this issue May 13, 2022 · 1 comment · Fixed by #69
Closed

Latest Clair Docker image does not publish any ports #68

pbielicki opened this issue May 13, 2022 · 1 comment · Fixed by #69

Comments

@pbielicki
Copy link

pbielicki commented May 13, 2022

I believe there is a problem with the latest Docker image tagged as v2.1.8_a0644866e5e1b81763de7e330f535f561bfd65c8. It does not publish any public ports:

4f7d1efe4054   arminc/clair-local-scan:v2.1.8_a0644866e5e1b81763de7e330f535f561bfd65c8                            "/clair -config=/con…"   2 minutes ago    Up 2 minutes                                          clair
263029064bcf   registry:2.7.1                                                                                     "/entrypoint.sh /etc…"   2 minutes ago    Up 2 minutes                0.0.0.0:55003->5000/tcp   registry
47f918ed5a11   arminc/clair-db:2022-05-13                                                                         "docker-entrypoint.s…"   2 minutes ago    Up 2 minutes                0.0.0.0:55002->5432/tcp   clair-db

This works fine with the last but one image i.e. v2.1.8_9bca9a9a7bce2fd2e84efcc98ab00c040177e258:

eb2aae873adb   arminc/clair-local-scan:v2.1.8_9bca9a9a7bce2fd2e84efcc98ab00c040177e258   "/usr/bin/dumb-init …"   2 minutes ago   Up 2 minutes   0.0.0.0:55012->6060/tcp, 0.0.0.0:55011->6061/tcp   clair
a9df3dcfe8c2   registry:2.7.1                                                            "/entrypoint.sh /etc…"   2 minutes ago   Up 2 minutes   0.0.0.0:55010->5000/tcp                            registry
baceabfd20af   arminc/clair-db:2022-05-13                                                "docker-entrypoint.s…"   2 minutes ago   Up 2 minutes   0.0.0.0:55009->5432/tcp                            clair-db

Practically, the latest tag v2.1.8_a0644866e5e1b81763de7e330f535f561bfd65c8 is unusable.

@weisdd
Copy link
Contributor

weisdd commented May 13, 2022

@pbielicki I've never relied on EXPOSE functionality in docker and tested clair only through docker-compose with explicitly defined ports. If you do rely on that, then the following line needs to be added to the Dockerfile:

EXPOSE 6060 6061

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants