Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 1.75 KB

File metadata and controls

85 lines (61 loc) · 1.75 KB

Docker Setup for AI Blur Background Application

This guide explains how to run the AI Blur Background application using Docker.

Prerequisites

  1. Install Docker and Docker Compose on your system
  2. Ensure your user has permission to run Docker commands (or use sudo)

Quick Start

  1. Build and run the application with Docker Compose:

    docker-compose up --build
  2. Access the application in your web browser at: http://localhost:8501

Docker Commands

Build the Docker image

docker-compose build

Run the application

docker-compose up

Run in detached mode

docker-compose up -d

Stop the application

docker-compose down

View logs

docker-compose logs -f

Troubleshooting

Permission Denied Error

If you encounter a "permission denied" error when trying to connect to the Docker daemon socket, you have a few options:

  1. Add your user to the docker group:

    sudo usermod -aG docker $USER

    Then log out and log back in for the changes to take effect.

  2. Use sudo with all Docker commands:

    sudo docker-compose up --build

Application Not Accessible

If the application is running but not accessible at http://localhost:8501:

  1. Check if the container is running:

    docker-compose ps
  2. Check the container logs:

    docker-compose logs blur-background-app
  3. Verify the port mapping in docker-compose.yml is correct

Development

For development, you can mount the current directory into the container to see changes reflected immediately:

docker-compose up --build

The docker-compose.yml file is already configured to mount the current directory into the container.