how to keep docker container running code example
Example 1: stop docker container
//Check if the container is running
docker ps -a
docker container stop {container-id}
Example 2: docker compose keep container running
version: '2'
services:
my-test:
image: ubuntu
command: tail -F anything