Skip to content

What docker compose up does

Select an icon to see what it is.

Step 5 of 6

Containers start

Compose then sends POST /containers/{id}/start for each one, in parallel because the file has no depends_on. dockerd connects each to shop-net and gives it its address. The file pins them, so web gets 172.18.0.2, api 172.18.0.3 and db 172.18.0.4.

POST /v1.45/containers/<id>/start

shop-db-1 172.18.0.4:5432