I
I
Ivan2019-08-22 10:06:31
linux
Ivan, 2019-08-22 10:06:31

How to restrict access to a docker container?

The collection of metrics occurs through the node-exporter, which runs in a container.
I tried adding a rule to the docker and docker-user chain, but the container is still available to everyone.
How to restrict access to the container?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Privalov, 2019-09-07
@negasus

What does "restrict access" mean? If you mean that there is access to the port (what is it, 9100?)? then your container is probably started with --network=host and this port is open on all interfaces of the host machine.
In general, it is not very clear what the problem is and what needs to be solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question