To stop a container, you need to obtain the container’s ID by using the `docker ps` command. Once you have copied the ID, insert it to replace the variable in the `docker stop
Here are the detailed steps:
1. Open a terminal.
2. List the running containers using `docker ps` command.
3. Copy the container id of the container you want to stop.
4. Use `docker stop
5. Press Enter to stop the Docker container.
For example:
```
$ docker stop 50ff6b942c62
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```