# Get containers list ``` docker ps -a ``` # Remove container by ID ``` docker rm <> ``` # Run container with name ``` docker run --name some_name -ti ubuntu:latest /bin/bash ``` # Stop container ``` docker stop <> ``` # Inspect docker container stats ``` docker inspect <> ``` # Set restart policy to conatiner ``` docker run -d --restart (always|unless-stoppe|on-failure) ``` # Run container detached ``` docker run -d ... ``` `-d` flag instructs the container to run in detached mode