File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,17 @@ RUN pip install awscli
27
27
ENTRYPOINT ["python" , "amazon_book_scraper" ]
28
28
# the scraper program has two arguments: num_book and num_reviews
29
29
# 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
You can’t perform that action at this time.
0 commit comments