Docker

Docker Commands

  1. Docker version

  2. Docker search

  3. Docker pull

  4. Docker run

  5. Docker ps

  6. Docker stop

  7. Docker restart

  8. Docker kill

  9. Docker exec

  10. Docker login

  11. Docker commit

  12. Docker push

  13. Docker network

  14. Docker history

  15. Docker rmi

  16. Docker ps -a

  17. Docker copy

  18. Docker logs

  19. Docker volume

  20. Docker logout

command Example

  1. docker pull python

  2. docker run python

  3. docker ps

  4. docker ps -a

  5. docker run --name pythoncontainer -d python

  6. docker exec -it 8976c759e58f python3

  7. docker inspect 8976c759e58f(container ID)

  8. docker run --name JavaContainer -it -d openjdk

  9. docker exec -it JavaContainer jshell

  10. docker pull mysql

  11. docker images

  12. docker run --name mysqlDB -e MYSQL_ROOT_PASSWORD=root -d mysql

  13. docker ps

  14. docker exec -it mysqlDB bash

  15. mysql -p (Enter the password)

  16. docker pull nginx

  17. docker run --name nginxServer -d -p 8080:80 nginx

  18. docker ps


Docker Study


Docker_ppt.pdf
Docker_Installation_ubuntudemo+(1).docx.pdf
Share_Docker_Image.docx.pdf
Create_Docker_Image.docx.pdf
Deploy_Docker_Container.docx.pdf
Docker_Compose.docx.pdf
Docker_Volume.docx.pdf
Containerisation+Interview+Questions.pdf