Skip to content

Instantly share code, notes, and snippets.

@Vaisakhkm2625
Created June 20, 2023 11:53
Show Gist options
  • Save Vaisakhkm2625/b27fb555e41ece90fa4b55ce2c33b7c0 to your computer and use it in GitHub Desktop.
Save Vaisakhkm2625/b27fb555e41ece90fa4b55ce2c33b7c0 to your computer and use it in GitHub Desktop.
docker - my notes

docker build -t dockerfile . docker run --expose 5000 -p 5000:5000 dockerfile

docker ps
docker exec -it <container_name> bash

on directory with docker-compose,

docker-compose down && docker-compose build && docker-compose up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment