Commonly used Docker commands

To start the docker server/service in Ubuntu

To stop the docker server/service in Ubuntu

To restart the docker server/service in Ubuntu

To start the docker server/service in latest RedHat distros

To stop the docker server/service in the latest RedHat distros

To restart the docker server/service in the latest RedHat distros

To enable the REST API feature in docker server

To list the docker containers

To list all the docker containers irrespective of their current state

To list all the docker images

To start a container

To stop a container

To stop more than one container

To stop all the containers that are running now

To remove all the containers including the ones that are stopped

To stop and remove all containers at one shot

To kill a container

To kill all containers

To get container details

To find the IPAddress of a container

To create a container in interactive mode and connect to the Docker container shell

To run a container in detached mode and connect to the detached container’s terminal

To build a Docker image, assuming the Dockerfile is at the current directory

To list all ports published by a container

To only list port forwarding details of port 22 of a docker container

By the way, did you check my YouTube channel for Docker and other related videos that might be of your interest?

https://www.youtube.com/user/BulletJegan/videos

Subscribe to my YouTube channel for further updates.

Enjoy DevOps with Docker !!!

Share Now

Jegan

More Posts By Jegan

Related Post

Leave us a reply