This guide explains how to run the AI Blur Background application using Docker.
- Install Docker and Docker Compose on your system
- Ensure your user has permission to run Docker commands (or use sudo)
-
Build and run the application with Docker Compose:
docker-compose up --build
-
Access the application in your web browser at: http://localhost:8501
docker-compose builddocker-compose updocker-compose up -ddocker-compose downdocker-compose logs -fIf you encounter a "permission denied" error when trying to connect to the Docker daemon socket, you have a few options:
-
Add your user to the docker group:
sudo usermod -aG docker $USERThen log out and log back in for the changes to take effect.
-
Use sudo with all Docker commands:
sudo docker-compose up --build
If the application is running but not accessible at http://localhost:8501:
-
Check if the container is running:
docker-compose ps
-
Check the container logs:
docker-compose logs blur-background-app
-
Verify the port mapping in docker-compose.yml is correct
For development, you can mount the current directory into the container to see changes reflected immediately:
docker-compose up --buildThe docker-compose.yml file is already configured to mount the current directory into the container.