The Ops Community ⚙️

Pritesh Bhoi
Pritesh Bhoi

Posted on

Docker - Containers

Containers are instances of Docker images that can be run using the Docker run command. The main purpose of Docker is to run containers. Let's discuss how to work with containers.

Running container
Container execution is controlled by the Docker run command. To start a container in interactive mode, first start a Docker container.

sudo docker run - it centos/bin/bash

Listing of Containers
The docker ps command can be used to list all the containers on a computer. This command is used to return the running container.

docker ps

Top comments (0)