Posts

Docker

Image
In this article, I have shared some basic commands in Docker. For developing, running and many more operations, Docker is an open-source platform. This will help you to get information containers that are running currently and also stopped containers. Why do we use Docker in DevOps? ans: In DevOps, containers help to give features like build, test, deploy, and many more pipelines. How to start Docker in the terminal? docker run -it ubuntu How to check when ubuntu started?   docker ps How to check that all the images are downloaded to my local machine?  docker images How to download ubuntu? docker run -it ubuntu How to show all containers? docker container ls How to go inside a running container? Note: bash shell should be attached to this running container. This command will not work if your container isn't running. command: docker container exec -it CONTAINER_ID 1st pic shows one container is already running: 2nd pic shows now we are in same container: How to r...