How to start/stop a docker container?

start-stop docker container

To start a container, use this command –

docker start <container_id>
docker start container_id

Or

docker start <container_name>
docker start container_name

To stop a container, use this command –

docker stop <container_id>
docker stop container_id

Or,

docker stop <container_name>
docker stop container_name