Docker Commands you must know as DevOps

Shishir TambeShishir Tambe
1 min read

All Commands you need to know in Docker
To see all images present in your local machine:
- docker images
To find out images in docker hub:
- docker search {name of image}
To download image from docker hub to local machine:
- docker pull {name of image}
To give name to container:
- docker run -it --name {name of container you want to give} ubuntu /bin/bash
To check, service is start or not:
- service docker status
To start container:
- docker start {container name}
To go inside/ access container:
- docker attach {container name}
To see all container:
- docker ps -a
To stop container:
- docker stop {container name}
To delete container:
- docker rm {container name}

0
Subscribe to my newsletter

Read articles from Shishir Tambe directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shishir Tambe
Shishir Tambe

Newbie to IT/CS