- Build the Dockerfile as image
dotnet-tools
docker build -t dotnet-tools . - Deploy the compose file as a stack
docker stack deploy --compose-file docker-compose.yml demo - Attach to the dotnet-tools container
docker exec -it abc123 /bin/bash - Run dotnet-dump
/tools/dotnet-dump collect -p 1 -o /data/dump
This succeeds but I'm not sure what process it's actually dumping. Since I have two containers running in my stack, how do I get it to hit the one I want?
The sockets appear to exist.