534 B
534 B
Get containers list
docker ps -a
Remove container by ID
docker rm <<container_id>>
Run container with name
docker run --name some_name -ti ubuntu:latest /bin/bash
Stop container
docker stop <<ID/name/...>>
Inspect docker container stats
docker inspect <<ID/name/...>>
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