Skip to content ![https://gist.github.com/](./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_1.7.svg]] ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_2.5.svg]] ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_3.svg) All gists Back to GitHub ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_4.svg]] You have no unread notifications ![https://gist.github.com/](./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_5.svg]] ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_6.svg) ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/106333383.png]] thomashartm/aws-sam-colima.md Last active 21 days ago • Report abuse [1](https://gist.github.com/thomashartm/9d48aa8d9fad98ee06c368bd416d1f08/stargazers) 0 ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_7.svg]] Code ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_8.svg]] Revisions 3 ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_9.svg]] Stars 1 Embed ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_10.svg]] ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_11.svg]]Save thomashartm/9d48aa8d9fad98ee06c368bd416d1f08 to your computer and use it in GitHub Desktop. Download ZIP Enable AWS SAM local to run without Docker Desktop but Colima + Docker Daemon on MacOs Raw ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_12.svg]] aws-sam-colima.md AWS SAM local commands without Docker Desktop AWS SAM local commands check for the existance of DOCKER_HOST. If the variable is not present, it will fail with the following error message Error: Running AWS SAM projects locally requires Docker. Have you got it installed and running? Replace it with Colima Point DOCKER_HOST to unix socket of the Docker Daemon. Colina creates it in the $HOME/.colima directory. Check the folder if the unix socket is present (docker.sock) ls -la $HOME/.colima Now set the environment variable (better add it to your shell config in .zshenv) export DOCKER_HOST="unix://$HOME/.colima/docker.sock" Source it in your shell source ~/.zshenv Now rebuild your sam project sam build -u ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_15.svg]] Add heading text ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_16.svg]] Add bold text, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_17.svg]] Add italic text, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_18.svg]] Add a quote, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_19.svg]] Add code, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_20.svg]] Add a link, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_21.svg]] Add a bulleted list, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_22.svg]] Add a numbered list, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_23.svg]] Add a task list, ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_24.svg]] Directly mention a user or team ![[./resources/enable-aws-sam-local-to-run-without-docker-desktop.resources/svg_25.svg]] Reference an issue or pull request Attach files by dragging & dropping, selecting or pasting them. Styling with Markdown is supported Footer © 2022 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About