this post was submitted on 16 Feb 2024
713 points (97.6% liked)

Programmer Humor

32273 readers
106 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] dan@upvote.au 1 points 8 months ago (1 children)

Are your Docker containers connecting to the network (eg using ipvlan or macvlan)? The default bridge network driver doesn't expose the container publicly unless you explicitly expose a port. If you don't expose a port, the Docker container is only accessible from the host, not from any other system on the network.

[–] PlexSheep@feddit.de 1 points 8 months ago (1 children)

They are Only in my docker bridge networks and have a few published ports

[–] dan@upvote.au 1 points 8 months ago (1 children)

If you don't want the Docker container to be accessible from other systems then just don't publish the port.

[–] PlexSheep@feddit.de 1 points 8 months ago

Yeah of course, that's what I'm doing anyways, but the purpose of a firewall would be defense in depth, even is something were to be published, the firewall got it.