Skip to content

Docker cheat sheetΒΆ

Build an image

docker build --platform linux/x86_64 -t name:latest .

Run the image as a service

docker run -p 9000:8080 name:latest

Test it (if it is a Lambda service)

curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'