Docker Commands

From DevilSec


Common Commands

Start Docker

service docker start

Stop Docker

service docker stop

Restart Docker

service docker restart

Listing all containers

docker ps -a

Listing images

docker images

Run a container

docker run -it <image>

Stop a container

docker stop <container id or name>

Remove a container

docker rm <container id or name>