What is Docker, docker containers, docker images and its basic commands

Docker is an open-source platform for building apps and microservices. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. Its main benefit is to package applications in containers, allowing them to be portable to any system running a Linux or Windows operating system (OS). Docker image is a file used to execute code in a Docker container and are created using a Docker file which can be customized or used as is.

Here are some basic docker commands:

  • docker run – Runs a command in a new container.
  • docker start – Starts one or more stopped containers
  • docker stop – Stops one or more running containers
  • docker build – Builds an image form a Docker file
  • docker pull – Pulls an image or a repository from a registry
  • docker push – Pushes an image or a repository to a registry
  • docker export – Exports a container’s filesystem as a tar archive
  • docker exec – Runs a command in a run-time container
  • docker search – Searches the Docker Hub for images
  • docker attach – Attaches to a running container
  • docker commit – Creates a new image from a container’s changes


Leave a Comment

Your email address will not be published. Required fields are marked *