Docker Containers

Docker Containers

Docker Containers

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed how to install docker in AWS EC2 instance.

In this blog post, we will discuss docker container. We will also create our 1st docker container. We will also explore all docker container management commands in this demo.

What is docker container?

A container is a runtime instance of an image–what the image becomes in memory when executed (that is, an image with state, or a user process). You can see a list of your running containers with the command, docker ps, just as you would in Linux.

Container vs VM:

A container runs natively on Linux and shares the kernel of the host machine with other containers. It runs a discrete process, taking no more memory than any other executable, making it lightweight.

By contrast, a virtual machine (VM) runs a full-blown “guest” operating system with virtual access to host resources through a hypervisor. In general, VMs provide an environment with more resources than most applications need.

Docker Container

Prerequisite for this demo:

  • One AWS EC2 instance with Linux 2 AMI and internet access.
  • Docker

Docker Container demo:

Hope you have enjoyed this article. In the next blog post, we will discuss the docker system.

To get more details on docker, please refer below docker documentation


Leave a Reply

Close Menu