Skip to content
 
 

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date Created

12 June 2024

python-docker

Containerizing a simple fastapi Python app.

Colima

Why Colima over Docker Desktop?

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.

Setting up Colima on macOS

To use Colima for container runtime on macOS, install it using Homebrew:

brew install colima

Start Colima with:

colima start

For a detached session:

colima start -d

Check the status of Colima:

colima status

Stop Colima when you’re done:

colima stop

For more detailed usage and options, please look to the Colima documentation.

Containerization

Run the application

docker compose up --build

Run the application in the background

You can run the application detached from the terminal by adding the -d option

docker compose up --build -d

Stop application

docker compose down

Author

Selman Karaosmanoglu

Credits

Docker's Python Language Guide.

Colima’s GitHub Repository.

About

A simple Python app for the Python Language Guide in Docker's Docs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages