From c543d87182523a3e84c34095bbbb124caf8963f1 Mon Sep 17 00:00:00 2001 From: Michael Zangl Date: Tue, 26 Nov 2024 13:40:36 +0100 Subject: [PATCH] Clarify how to build and run I used this in class. My students were missing the build command, because it is a bit hidden in the text. I suggest making it more obvious that the image needs to be built before running it. --- nginx/content.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/content.md b/nginx/content.md index 47b01a4a2..f933a5baa 100644 --- a/nginx/content.md +++ b/nginx/content.md @@ -21,9 +21,10 @@ FROM %%IMAGE%% COPY static-html-directory /usr/share/nginx/html ``` -Place this file in the same directory as your directory of content ("static-html-directory"), run `docker build -t some-content-nginx .`, then start your container: +Place this file in the same directory as your directory of content ("static-html-directory"), then run these commands to build and start your container: ```console +$ docker build -t some-content-nginx . $ docker run --name some-nginx -d some-content-nginx ```