Skip to content

Commit fdbd389

Browse files
committed
doc: adds comments to the docker file
1 parent f416422 commit fdbd389

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,17 @@ RUN pip install awscli
2727
ENTRYPOINT ["python", "amazon_book_scraper"]
2828
# the scraper program has two arguments: num_book and num_reviews
2929
# both gets a default value of 5 and can be overdriven.
30-
CMD ["5", "5"]
30+
CMD ["5", "5"]
31+
32+
# example docker run
33+
# docker run -it -d -rm --name amazon_scraper shbz80/amazon_book_scraper:latest 10 10
34+
# -it : interactive
35+
# -d : detached
36+
# -rm : remove after completion
37+
# --name : name of the container instance (amazon_scraper)
38+
# [image] : docker image (shbz80/amazon_book_scraper:latest)
39+
# arg1, arg2: additional aguments to ENTRYPOINT (10 10)
40+
# other useful commands
41+
# docker container ls : list all active containers
42+
# docker container ls -all : list all containers
43+
# docker container prune : remove all stopped containers

0 commit comments

Comments
 (0)