Git Assingment -Pankaj Devrani

Q1. What are differences between the git distributed model and svn server-client model? Git is open source distributed vice control system whereas Apache Subversion is an open source software version and revision control system under Apache license Git has a Distributed Model. But SVN has a Centralized Model. In git every user has their own copy of code on their local like their own branch but In SVN there is central repository has working copy that also make changes and committed

Read more

Docker Assignment – Pankaj Devrani

Components of Docker and its Brief Summary Docker has below components.  dockerd – is a docker daemon which listens for docker API requests using three different types of sockets(unix, tcp and fd)  Containerd – is responsible for managing container lifecycle. It takes care of image push/pull, managing storage, invoking execution of containers, managing network primitives RunC – is command-line client for running applications packed according to OCI format and is a compliant implementation of the OCI What is the differenece

Read more

7.List of 20 docker commands and its use cases with example?

Docker –version         gives the version of docker that’s being used Docker pull                 to pull an image from the registry Docker run <image>  to create a container Docker ps                    list of running containers Docker ps –a               shows all the running and exited containers Docker stop                stop a running container gracefully Docker kill                  stops a running container abruptly Docker commit           creates a new image of an edited container Docker push                used to push an image

Read more

1.Components of Docker and its Brief Summary

A docker consists of      Docker client which puts up the request for the client in order to perform a request.      Docker host which contains the docker daemon. The requests which are put up by the client are processed here i.e containers are created and images are pulled from docker registry/hub. Docker registry is the place where the different apps images are stored. These images are pulled to the host where they are processed by creating a container.

Read more

7. List of 20 docker commands and its use cases with example?

Docker psThis command is used to list all the running containers in the background. Docker ps -aThis command is used to know the details of all the running, stopped, or exited containers. Docker versionWe usually start by finding the installed version of docker that we are working on. Docker pullAs the name suggests, this command pulls a specific image from the Docker Hub. All you have to do is use the command ‘docker pull’ along with the name of the

Read more

6. What is the difference between CMD vs Entrypoint

CMD InstructionYou can set default commands with parameters using the CMD instruction. If you run a Docker container without specifying any additional CLI commands, the CMD instruction will be executed. You can include an executable as the default command. However, if you choose to omit it, you will have to specify an ENTRYPOINT instruction along with the CMD instruction If you have specified an argument along with the Docker run command, the default one specified using the CMD instruction will

Read more

4. What is the difference between docker exec and attach?

Docker attachThis command to attach your terminal’s standard input, output, and error (or any combination of the three) to a running container using the container’s ID or name. attach the running container with the following command. you need to press enter once execute the below command, docker is waiting for your input. docker attach nodeapi once attached, you can do all the cli commands like you can check the node version, run the bundle file, exit etc.. But the problem

Read more
1 2 3 4 312