To start a container, use this command –
docker start <container_id>
![docker start container_id](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/07/image-9.png?resize=820%2C174&ssl=1)
Or
docker start <container_name>
![docker start container_name](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/07/image-11.png?resize=820%2C178&ssl=1)
To stop a container, use this command –
docker stop <container_id>
![docker stop container_id](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/07/image-8.png?resize=820%2C181&ssl=1)
Or,
docker stop <container_name>
![docker stop container_name](https://i0.wp.com/authors.akashmittal.com/wp-content/uploads/2022/07/image-10.png?resize=820%2C171&ssl=1)
Kubernetes Series
- Introduction to Kubernetes
- Introduction to Docker, Containers, Images & Repository
- Install and Run Docker Images
- Docker Image – FROM, RUN, COPY, ENTRYPOINT, CMD, EXPOSE explained
- Why docker run or start command not running my container?
- How to list all docker images in system?
- How to list all docker containers?
- How to start/stop a docker container?
- Difference between docker run and docker start
- How to bind docker container port with host?
- How to get logs of docker container?
- How to live stream logs of docker container?
- Set custom name to a docker container
- Access docker container filesystem & terminal
- Getting docker details using docker inspect
- Kyverno – Installation, Policies, Testing, Reporting, Monitoring, Security
- Complete Kubernetes Project Step By Step
- Introduction to Kubernetes Objects