docker container run -it <image_name> <program_to_start> creates and starts a container from an image specified.docker run -it <image_name> also works without explicit container keyword, but it considers a default program_to_start aka entrypoint or cmd is already defined in Dockerfile of the specified image (otherwise container is created but in exited state)docker run -it starts the container, attaches your terminal shell’s I/O to Containers shell’s I/O.
sh.docker container ls OR docker ps shows active containers, docker ps -a Includes exited containers too
Ctrl+P+Q to gracefully come out of the container session without existing it.docker run -d will start a container in detached mode.
docker container stop <container_name> or docker container stop <container_id> You can use shorthand to provide the ID value only to its uniquness
docker container stop and docker stop is same. container keyword is almost reduntant since docker is a container in itself ;)docker rm <container_id> will remove it and docker start <container_id> will start an exited container.
docker exec -it <container_id or name> <program_to_start>


docker container rm $(docker container ls -aq) -fls -aq is an option of quite which shows only container IDs and -f to force and remove running containers too