Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are docker-proxy processes for

Tags:

docker

When I look at all running processes on my Linux machine, there are quite a few docker-proxy processes. It seems like every running container (port) results in one docker-proxy!

Problem is I cannot find any documentation which processes docker actually starts and how their relationship/usage is.

Does anyone know if there is any documentation on that?

like image 734
abergmeier Avatar asked Mar 02 '18 13:03

abergmeier


People also ask

Does Docker need a proxy?

A proxy is required when the server running Docker does not have direct access to the Internet. Configure the Docker daemon to use a proxy server to access images stored on the official Docker Hub Registry or 3rd-party registries.

What is Docker reverse proxy?

Nginx and Docker reverse proxy configuration A reverse proxy handles client requests, and then forwards those requests to another server that runs in the backend. This backend origin server processes the request and provides a response back to Nginx, which then sends the response back to the client.

What is the use of Docker daemon?

The Docker daemon ( dockerd ) listens for Docker API requests and manages Docker objects such as images, containers, networks, and volumes. A daemon can also communicate with other daemons to manage Docker services.

What is Docker process?

A container's main running process is the ENTRYPOINT and/or CMD at the end of the Dockerfile . It is generally recommended that you separate areas of concern by using one service per container. That service may fork into multiple processes (for example, Apache web server starts multiple worker processes).


1 Answers

A full explanation of the docker-proxy is available here.

The summary is that the proxy is used to handle connections originating from the local machine that might otherwise not pass through the iptables rules that Docker configures to handle port forwarding, or when Docker has been configured such that it does not manipulate iptables at all.

like image 187
larsks Avatar answered Oct 26 '22 23:10

larsks