Docker Basic Commands:


docker pull redis ///// Download docker image from dokcer hub
docker run “redis” //// start new container and running the image. Container is environment for running some images – for example “redis”
docker run redis:4.0 ///// start new container and running the image with specific version.
docker ps ////// For showing status of all running Containers
docker ps -a ////// For showing status of all running/unrunning Containers
docker stop “ID of conatiner”
docker start “ID of container”

If we have 2 appliactions with the same ports, we can do binding:

docker run -p6000:6379 redisdocker run -p6001:6379 redis:4.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top