Skip to main content

Quick Commands

Show running container

docker ps

Run new container

(Also pulls the corresponding image)

docker run -d -t -p <portondockerhost>:<portinsidedockercontainer> --name <containername> <containerimagename>:<containerimageversion>

Download specific container image

docker pull <imagenamefromdockerhub>:<imageversion>

Power options for container

Stop container

docker stop <containername/containerid>

Start container

docker start <containername/containerid>

Restart Container

docker restart <containername/containerid>