12 June 2024
Containerizing a simple fastapi Python app.
Colima is an open-source project, offering transparency and community contributions. It provides more customization options for the virtual machine environment and has no licensing restrictions unlike Docker Desktop. Additionally, Colima supports different container runtimes like Docker and Containerd, giving us the flexibility to choose the best tool for our needs.
To use Colima for container runtime on macOS, install it using Homebrew:
brew install colimaStart Colima with:
colima startFor a detached session:
colima start -dCheck the status of Colima:
colima statusStop Colima when you’re done:
colima stopFor more detailed usage and options, please look to the Colima documentation.
docker compose up --buildYou can run the application detached from the terminal by adding the -d option
docker compose up --build -ddocker compose downSelman Karaosmanoglu
Docker's Python Language Guide.
Colima’s GitHub Repository.