Question 21. How to stop and restart the Docker container?
Answer: To stop the container: docker stop container ID Now to restart the Docker container:
docker restart container ID
Question 22. What platforms does Docker run on?
Answer: Docker runs on only Linux and Cloud platforms:
-
Ubuntu 12.04 LTS+
-
Fedora 20+
-
RHEL 6.5+
-
CentOS 6+
-
Gentoo
-
ArchLinux
-
openSUSE 12.3+
-
CRUX 3.0+
Cloud:
-
Amazon EC2
-
Google Compute Engine
-
Microsoft Azure
Rackspace Note that Docker does not run on Windows or Mac for production as there is no support, yes you can use it for testing purpose even in windows
Question 23. what are the tools used for docker networking?
Answer: For docker networking we generally use kubernets and docker swarm.
Question 24. what is docker compose?
Answer: Lets say you want to run multiple docker container, at that time you have to create the docker compose file and type the command docker-compose up. It will run all the containers mentioned in docker compose file.
Question 25. What is Scrum?
Answer: Scrum is basically used to divide your complex software and product development task into smaller chunks, using iterations and incremental practises. Each iteration is of two weeks. Scrum consists of three roles: Product owner, scrum master and Team
Question 26. What does the commit object contain?
Answer: Commit object contain the following components: It contains a set of files, representing the state of a project at a given point of time reference to parent commit objects An SHAI name, a 40-character string that uniquely identifies the commit object (also called as hash).
Question 27. How do we know in Git if a branch has already been merged into master?
Answer: git branch –merged The above command lists the branches that have been merged into the current branch. git branch –no-merged this command lists the branches that have not been merged.
Question 28. What is ‘Staging Area’ or ‘Index’ in GIT?
Answer: Before committing a file, it must be formatted and reviewed in an intermediate area known as ‘Staging Area’ or ‘Indexing Area’. #git add <file_name>
Question 29. What is Git Stash?
Answer: Let’s say you’ve been working on part of your project, things are in a messy state and you want to switch branches for some time to work on something else. The problem is, you don’t want to do a commit of your half-done work just, so you can get back to this point later. The answer to this issue is Git stash. Git Stashing takes your working directory that is, your modified tracked files and staged changes and saves it on a stack of unfinished changes that you can reapply at any time.
Question 30. How can you create a repository in Git?
Answer: To create a repository, you must create a directory for the project if it does not exist, then run command “git init”. By running this command .git directory will be created inside the project directory.
Question 31. what is docker compose?
Answer: Lets say you want to run multiple docker container, at that time you have to create the docker compose file and type the command docker-compose up. It will run all the containers mentioned in docker compose file.
Question 32. What is Jenkins?
Answer: Jenkins is an open source continuous integration tool which is written in Java language. It keeps a track on version control system and to initiate and monitor a build system if any changes occur. It monitors the whole process and provides reports and notifications to alert the concern team.
Question 33. what is docker compose?
Answer: Lets say you want to run multiple docker container, at that time you have to create the docker compose file and type the command docker-compose up. It will run all the containers mentioned in docker compose file.
Question 34. What is the difference between Maven, Ant and Jenkins?
Answer: Maven and Ant are Build Technologies whereas Jenkins is a continuous integration(CI/CD) tool.
Question 35. Explain what is continuous integration?
Answer: When multiple developers or teams are working on different segments of same web application, we need to perform integration test by integrating all the modules. To do that an automated process for each piece of code is performed on daily bases so that all your code gets tested. And this whole process is termed as continuous integration.
Question 36. What is the relation between Hudson and Jenkins?
Answer: Hudson was the earlier name of current Jenkins. After some issue faced, the project name was changed from Hudson to Jenkins.
Question 37. What is Ansible?
Answer: Ansible is a software configuration management tool to deploy an application using ssh without any downtime. It is also used for management and configuration of software applications. Ansible is developed in Python language.
Question 38. What are the challenges you faced in recent times?
Answer: I need to implement trending technologies like Docker to automate the configuration management activities in my project by showing POC.
Question 39. What are the build and deployment failures you got and how you resolved those?
Answer: I use to get most of the time out of memory issue. So I fixed this issue by restarting the server which is not best practice. I did the permanent fix by increase the Perm Gen Space and Heap Space.
Question 40. I want a file that consists of last 10 lines of the some other file?
Answer: Tail -10 filename >filename