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.
This commit is contained in:
parent
68d4ce7011
commit
c543d87182
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue