From 3409be890e8bdb16880ac522ac8c1f1d2f3e1148 Mon Sep 17 00:00:00 2001 From: Davide De Benedittis Date: Wed, 26 Feb 2025 00:44:37 +0100 Subject: [PATCH] Update Docker instructions --- docs/docker.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docker.md b/docs/docker.md index c6ee7b0..6449278 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -11,4 +11,15 @@ All of the examples in this repo provide instructions for being run normally, an If starting from scratch and your host machine is Ubuntu 22.04, you can use accomplish all of the above with the convenience scripts `scripts/docker/install_docker_ubuntu22.sh` and `scripts/docker/install_nvidia_container_toolkit.sh`. +Build the Docker image and start the container with the following command: +```bash +docker compose -f scripts/docker/compose.yml up --build +``` + +To build and run the Docker image for a specific example, use the following command: +```bash +docker compose -f examples//compose.yml up --build +``` +where `` is the name of the example you want to run. + During the first run of any example, Docker will build the images. Go grab a coffee while this happens. Subsequent runs will be faster since the images are cached. \ No newline at end of file