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 diff --git a/scripts/docker/compose.yml b/scripts/docker/compose.yml index 0caf878..564d276 100644 --- a/scripts/docker/compose.yml +++ b/scripts/docker/compose.yml @@ -1,10 +1,10 @@ # Run with: -# docker compose -f scripts/compose.yml up --build +# docker compose -f scripts/docker/compose.yml up --build services: openpi_server: image: openpi_server build: - context: .. + context: ../.. dockerfile: scripts/docker/serve_policy.Dockerfile init: true tty: true