# Advanced Installation On Ubuntu - Build Docker Image > **NOTE:** The easiest way to run Deep Learning Streamer in Docker is to > [pull docker images from DockerHub](../../get_started/install/install_guide_ubuntu#option-2-install-docker-image-from-docker-hub-and-run-it). The instructions below are intended for building Docker images based on Ubuntu22/24 from Deep Learning Streamer Dockerfiles. ## Step 1: Install prerequisites Follow the instructions in [the prerequisites](../../get_started/install/install_guide_ubuntu#prerequisites) section. ## Step 2: Download Dockerfiles All Dockerfiles are in [DLStreamer GitHub repository](https://github.com/open-edge-platform/edge-ai-libraries/tree/main/libraries/dl-streamer/docker). - **Ubuntu24 debian/dev Dockerfile** ```bash wget https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/docker/ubuntu/ubuntu24.Dockerfile ``` - **Ubuntu22 debian/dev Dockerfile** ```bash wget https://raw.githubusercontent.com/open-edge-platform/edge-ai-libraries/main/libraries/dl-streamer/docker/ubuntu/ubuntu22.Dockerfile ``` ## Step 3: Build Docker image Build a Docker image from a Dockerfile, using the template command-line, as follows: ```bash docker build -f -t . ``` For example, you can build a Docker debian image from the **ubuntu22.Dockerfile**, naming it **dlstreamer-ubuntu22**, and using the current directory as the build context. ```bash docker build -f ubuntu22.Dockerfile -t dlstreamer-ubuntu22 . ``` You can build a Docker development image from the **ubuntu22.Dockerfile**, naming it **dlstreamer-dev-ubuntu22**, and using the current directory as the build context: ```bash docker build --target dlstreamer-dev -f ubuntu22.Dockerfile -t dlstreamer-dev-ubuntu22 . ```