Skip to content

What docker compose up does

Select an icon to see what it is.

Step 2 of 6

Network and volume are created first

Compose sends POST /networks/create for shop-net and POST /volumes/create for the volume. Both carry com.docker.compose.* labels, which is how Compose finds its own resources later. This is the same API that docker network create uses.

POST /v1.45/networks/create

{
"Name": "shop-net"
"IPAM": {
"Config": [
{
"Subnet": "172.18.0.0/16"
}
]
}
"Labels": {
"com.docker.compose.project": "shop"
"com.docker.compose.network": "default"
}
}