Skip to content

Instantly share code, notes, and snippets.

@neelriyer
Created July 19, 2020 06:14
Show Gist options
  • Save neelriyer/927fc75cf90bd0060f8073a71e4fc878 to your computer and use it in GitHub Desktop.
Save neelriyer/927fc75cf90bd0060f8073a71e4fc878 to your computer and use it in GitHub Desktop.
detectron2 web app build and run docker container (see logs)
# 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