Created
          July 19, 2020 06:14 
        
      - 
      
 - 
        
Save neelriyer/927fc75cf90bd0060f8073a71e4fc878 to your computer and use it in GitHub Desktop.  
    detectron2 web app build and run docker container (see logs)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # stop containers | |
| docker stop $(docker ps -a -q) | |
| # remove containers | |
| docker rm $(docker ps -a -q) && docker rmi $(docker images | grep '^<none>' | awk '{print $3}') | |
| # build container | |
| docker build . -f Dockerfile -t detectron2 | |
| # run contrainer on port 8080 | |
| docker run -d -p 8080:8080 detectron2 | |
| # see logs | |
| docker logs -f -t $(docker ps -q) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment