Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 706 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 706 Bytes

docker-learning

git status <- check modified files
git add . <- to add modified files
git commit -m "<ADD YOUR MESSAGE>" <- to commit changes
git push <- to push changes

git pull <- to pull changes when someone else added adds code

DOCKER

docker-compose up -d --build <- start docker containes
docker-compose down <- stop docker containers
docker ps <- show all live containers
docker ps -a <- show all containers
docker logs -f containerid <- show logs
ctrl+c
docker build -> builds a new image from the source code.
docker create -> creates a writeable container from the image and prepares it for running.
docker run  -> creates the container (same as docker create) and runs it