computer_science:docker:docker_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer_science:docker:docker_cheatsheet [2023/12/01 12:07] – external edit 127.0.0.1computer_science:docker:docker_cheatsheet [2023/12/11 21:30] (current) carlossousa
Line 14: Line 14:
 docker build --tag <tag> . docker build --tag <tag> .
  
-</code>     |To be run from the directory where "dockerfile" lives. Will greate an Image with the tag provided. \\ Eg.: docker build –tag tornscrapper:0.1|+ 
 +</code>       |To be run from the directory where "dockerfile" lives. Will create an Image with the tag provided. Eg.: docker build –tag tornscrapper:0.1  | 
 +|<code> 
 +docker images -a | grep none | awk '{ print $3; }' | xargs docker rmi 
 + 
 +</code>       |Delete dangling images and / or images that have a "none" tag. \\ Might be helpful if "docker image prune" doesn't remove those.|
  
  
  • computer_science/docker/docker_cheatsheet.1701432452.txt.gz
  • Last modified: 2023/12/01 12:07
  • by 127.0.0.1