Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 861 Bytes

docker_cheatsheet.md

File metadata and controls

17 lines (16 loc) · 861 Bytes

##Docker Commands:

  • PULL : docker pull <container_name>
  • RUN: docker run <name/id>
  • LIST: docker ps / docker ps -a / docker ps -l <name/id>
  • START:docker start <name/id>
  • STOP: docker stop <name/id>
  • REMOVE: docker rm <name/id>
  • HELP: docker <option> help : docker run help/ docker start help
  • COMMIT : docker commit -m "What you did to the image" -a "Author Name" container_id repository/new_image_name -m = for message -a = to specify author repository = repository name from docker hub / generally username new_image_name= any name that you want
  • LOGIN: docker login -u docker-registry-username
  • TAG: docker tag sammy/ubuntu-nodejs docker-registry-username/ubuntu-nodejs
  • PUSH: docker push docker-registry-username/docker-image-name ::: docker push sammy/ubuntu-nodejs