diff --git a/dockerfiles/README.md b/dockerfiles/README.md index b8105d91..3c9c995a 100644 --- a/dockerfiles/README.md +++ b/dockerfiles/README.md @@ -31,6 +31,9 @@ CMD ["-h"] # becomes "nginx -h" ``` +> #### ! Note +>Setting `ENTRYPOINT` will remove the `CMD` instruction defined in the base image. To fix this, the `CMD` instruction must be redefined in the current image. + Let's run it. ```bash docker build -t testnginx . # build image