0

I came across this EXPOSE command:

EXPOSE map[5432/tcp:{} 8008/tcp:{} 8081/tcp:{}]

Can anyone please explain what the map syntax means?
And a link to the docs would be nice, I couldn't find it.

TmTron
  • 17,012
  • 10
  • 94
  • 142
  • 1
    for me it's an invalid syntax, i get `ERROR: failed to solve: Invalid containerPort: {}` when trying it, i guess it's docker.io that is not displaying it correctly, see : https://github.com/openremote/postgresql/blob/main/Dockerfile , the real line is `EXPOSE 5432 8008 8081` – Lk77 Aug 11 '23 at 10:08
  • 1
    That's not standard Dockerfile syntax but an artifact of the way Docker Hub extracts data from an image. [Docker image layer: What does `ADD file: in /` mean?](https://stackoverflow.com/questions/63823884/docker-image-layer-what-does-add-filesome-hash-in-mean) is similar. I'd expect the Dockerfile to say something like `EXPOSE 5432 8008 8081` here. – David Maze Aug 11 '23 at 10:41
  • Thanks. I also think, that it's just a display issue and that it is not in fact valid dockerfile syntax. – TmTron Aug 11 '23 at 12:20

0 Answers0