Q1. What Are The Differences Between Docker and Hypervisors?
Q1. What Are The Differences Between Docker and Hypervisors?
Docker vs Hypervisors
Note: Unlike Virtual Machines which has its own OS Docker containers uses the host
OS
Docker containers are easy to deploy in a cloud. It can get more applications running on the
same hardware than other technologies, it makes it easy for developers to quickly create,
ready-to-run containerized applications and it makes managing and deploying applications
much easier. You can even share containers with your applications.
If you have some more points to add you can do that but make sure the above the above
explanation is there in your answer.
• Dokku
• Docker Compose
• Docker Machine
• Jenkins
Docker can build images automatically by reading the instructions from a Dockerfile.
Q9. Can I use json instead of yaml for my compose file in Docker?
You can use json instead of yaml for your compose file, to use json file with
compose, specify the filename to use for eg:
docker-compose -f docker-compose.json up
Q10. Tell us how you have used Docker in your past position?
➢ Explain how you have used Docker to help rapid deployment. Explain how
you have scripted Docker and used Docker with other tools like Puppet,
Chef or Jenkins.
➢ If you have no past practical experience in Docker and have past experience
with other tools in a similar space, be honest and explain the same. In this
case, it makes sense if you can compare other tools to Docker in terms of
functionality.
Q11. How to create Docker container?
I will suggest you to give a direct answer to this.
We can use Docker image to create Docker container by using the below command:
1 docker run -t -i command name
This command will create and start a container.
You should also add, If you want to check the list of all running container with the status on a
host use the below command:
1 docker ps -a
• RHEL 6.5+
• CentOS 6+
• Gentoo
• ArchLinux
• openSUSE 12.3+
• CRUX 3.0+
Cloud:
• Amazon EC2
• Google Compute Engine
• Microsoft Azure
• Rackspace