Docker Interview Questions (Part 1)

  • What is Containerization

Containerization is an alternative to virtualization represented as a lightweight mechanism to encapsulate an application with its dependencies and OS in a container

  • What are the benefits of having Containerization


  • What is an image in a container world

Image is an executable package that includes all the components required to run an application like code, runtime, libraries, environment variables and configuration files

  • What is a Container

Container is the runtime instance of an image when executed having the state of the image and user processes

  • What is the difference between a Container and Virtual Machine

Container runs natively on Linux and shares the kernel of the host machine with other containers

Virtual Machine (VM) runs the whole OS with virtual access to host resources through hypervisor

  • What is Docker

Docker is a platform to develop, deploy and run applications with container

  • How do you check the Docker version
docker --version
  • How can you view details about Docker installation
docker info

  • How can you run a Docker image
docker run <image name>
  • How can you list docker image downloaded
docker image ls
  • How can you list docker containers which are still running
docker container ls --all
  • How does Containerization provide a seamless CI/CD process


OctoWatch–a mobile app to monitor Octopus deployments

Check out the new open source native app that helps you to keep track of state of Octopus deployments on your machines. Here is the link to iTune for this app. This app has been build with React Native and TypeScript.

Here is the GitHub Url for the source code to OctoWatch Note that is only an iOS app.

Access Team City from Windows VM deployed in Azure through Public IP

There might be a situation where you are planning to have your DevOps Continuous Integration and Deployment processes to be implemented from a VM having Windows OS you have provisioned in Azure. This post mainly emphasize on how you can access your Team City from one of the VM commissioned in Azure through Public IP. Since I am not dealing with how to setup the Team City, hence I will skip the setup process and rather focus on the access over public IP. Please go through the step-by-step instructions.

Step 1: Add Inbound rules to the server firewall for allowing communications

Login to the VM and then access the Windows Firewall . Create a new Inbound rule.


Select Protocol and Ports and specify port 80 where the rule applies. The port 80 is the port that has been configured for your localhost when you had setup Team City which goes like http://localhost/login.html. You can assign any other port that you had configured with.



Select Allow Connection from the Action pane


Rest continue with the default option for the Profile and then provide a name for this Rule you have created and finish to add the new rule.

Step 2: Configure the Azure VM from the Azure Portal

Login to the portal and select the VM that you have created and select the IP address.


Provide a DNS name and assign to Static IP


Select the Network Security Group <VM_Name>.nsg assigned for the VM in order to allow traffic for port 80. Select the Inbound Security Rules and Add a rule.


While adding the rule, add the name of the rule, ensure that you have selected HTTP for Service and Action is Allow.


Once the rule is added, Redeploy the VM.


That’s it. Now you can provide the Team City URL http://<dns-name>/login.html and you will be able to view the Team City Login page through Internet.