Docker quick start and useful commands

preview_player
Показать описание
***********************************
Docker Quick Start/Useful Commands
***********************************

Docker get images
-----------------
docker images
docker search []
docker pull [imagename:tag]

List containers
--------------
docker ps
docker ps -a

run/exec/inspect
----------------
docker run -it [imagename:tag] /bin/bash
docker run --name [name] -it [imagename:tag] /bin/bash
docker inspect [containername]
Ctrl-pq - exit
docker exec -it [containername] /bin/bash

Copy files
----------

Remove container
----------------
docker rm [container]
docker rmi [image]

Stop and remove all containers
------------------------------
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Рекомендации по теме
Комментарии
Автор

i want to learn Docker, are you giving any coaching let me know please

durgaprasadvadaga