Assignment Day 2 – Explain docker update & docker wait commands with example

docker update The docker update command dynamically updates container configuration. You can use this command to prevent containers from consuming too many resources from their Docker host eg : docker update –cpu-shares 512 317e428b3427(share cpu) you can check with the docker inspect 166eb15bcb01 command docker wait Start a container in the background. Run docker wait, which should block until the container exits. In another terminal, stop the first container. The docker wait command above returns the exit code. This is the same docker wait command from above,

Read more

advantage and disadvantage of the container

Advantages Return on Investment and Cost SavingsRapid DeploymentSecuritySimplicity and Faster ConfigurationsContinuous Integration Disadvantages Data in the containerThere are times when a container goes down, so after that, it needs a backup and recovery strategy Provide cross-platform compatibilityThe one major issue is if an application designed to run in a Docker container on Windows, then it can’t run on Linux or vice versa Run applications with graphical interfacesIn general, Docker is designed for hosting applications which run on the command line.

Read more

FILE HANDLING IN PHP

In PHP we will take a look at file handling. We will take a look at how to open , close a file, how to read a file line by line and how to read a file character by character. Modes Description r Read only. Starts at the beginning of the file r+ Read/Write. Starts at the beginning of the file w Write only. Opens and clears the contents of file; or creates a new file if it doesn’t exist

Read more

Answer for Assignment – Day 1

What is the diff between docker pause and docker unpause? Docker pause command is used to move the processes running within the container to paused state by sending a signal SIGSTOP and then the docker unpause command can be used to bring back the processes to running state. What is the diff between docker stop and docker kill? Docker stop command is used to stop all the running processes within the container by sending a SIGTERM signal which can be

Read more

Assignment for Docker – Day 1

What is the diff between docker stop and docker kill? docker stop: Stop a running container (send SIGTERM, and then SIGKILL after grace period) […] The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL. [emphasis mine] docker kill: Kill a running container (send SIGKILL, or specified signal) […] The main process inside the container will be sent SIGKILL, or any signal specified with option –signal. [emphasis mine] What is the diff between docker pause

Read more

Chekkizhar-assignments

Day-3 What is POD? define in bullets points virtual entity. Can not be started. Only can be instantiated K8 manages pods Pods have unique IP in that particular cluster Pods can have multiple container ( not same image) in a single pod Pods talk with other pods using pod network which is provided by kubeproxy pods are atomic ( either ready or pending ) they are unique in a cluster they are in life cycle : pending–> running–>success or fail

Read more

Assignment 1

What is the diff between docker pause and docker unpause? The command “docker pause” suspends all processes in the specified containers. Usually the SIGSTOP signal is sent to the process, which is observable by the process being suspended. EG : docker pause 9b1247ebff59 docker ps -a 9b1247ebff59   jenkins/jenkins   “/sbin/tini — /usr/…”   20 minutes ago   Up 17 seconds (Paused)          8080/tcp, 50000/tcp   Demo1 EG : The command “docker unpause” automatically un-suspends the processes in the specified containers. Usually this is accomplished via

Read more

Day1 Answers

What is the diff between docker pause and docker unpause? docker stop: Stop a running container (send SIGTERM, and then SIGKILL after grace period) […] The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL. [emphasis mine] docker kill: Kill a running container (send SIGKILL, or specified signal) […] The main process inside the container will be sent SIGKILL, or any signal specified with option –signal. [emphasis mine] The docker unpause command un-suspends all processes in the

Read more

Assignment – 1

Create a POST on bestDevops.com and answer following questions? Install Docker in your assigned VM? Installed the Docker in the VM. — [root@ip-172-31-8-134 centos] Verification: Verify docker installation and basic commands? Self proov it – What is Container? Playing with different Docker commands:- Container Lifecycle? create -> start -> stop -> start -> restart -> pause -> unpause -> kill -> remove Create a container: Pulling a jenkins image.: start a container: stop the container start and restart pause and

Read more

Assignment for Docker – Day 1

What is the diff between docker pause and docker unpause? The docker pause command suspends all processes in the specified containers. When suspending a process the SIGSTOP signal is used, which is observable by the process being suspended. With container pause we cannot execute any commands which will throw an error root@ip-172-31-7-71 centos]# docker exec b5358234e052 lsError response from daemon: Container b5358234e052 is paused, unpause the container before exec Docker unpause command is used to resume the suspended container to

Read more

Answer: Assignment Day 1

What is the diff between docker stop and docker kill? docker stop will send SIGTERM to the process and docker will have some-time seconds to clean up like saving files or emitting some messages. Will return “ExitCode:0” docker kill will terminate the process used in-case the docker is in locked up state or not responding state. Will return “ExitCode:137”

Read more

Assignment Day 1 – John

What is the difference between docker pause and docker unpause? The command “docker pause” suspends all processes in the specified containers. Usually the SIGSTOP signal is sent to the process, which is observable by the process being suspended. However, the command “docker unpause” automatically un-suspends the processes in the specified containers. Usually this is accomplished via the SIGCONT signal. What is the difference between docker stop and docker kill? The command “docker stop” sends a SIGTERM signal to the main

Read more

Assignment questions (Docker training)

What is the diff between docker pause and docker unpause? docker pause and unpause allows to temporarily stop and resume the docker container process. What is the diff between docker stop and docker kill? docker stop may allow system to gracefully exist before stopping the docker (by signalling) whereas docker kill could forcefully terminate the docker container process. kill can be used in the event of system hang or similar situation.

Read more

Assignment for Docker – Day 1

Create a POST on bestDevops.com and answer following questions? Install Docker in your assigned VM? Verify docker installation and basic commands? Self proov it – What is Container? What is the diff between docker pause and docker unpause? What is the diff between docker stop and docker kill? & publish and share a url in the chat windows.

Read more

Laravel Permissions to set on Storage folder on Linux.

When we Setup laravel project on linux server then we have to give permissions to all folder’s, sub-folder’s and files in laravel Storage folder. So, i’m providing the list of permission which you have to set in storage folder. I’m providing this list because we can’t set 777 permission to all folders, if we do then it’s may be a security concern. So i’m providing a complete list of each folder’s and sub-folder’s permissions. storage – 755. storage/app – 755.storage/app/public

Read more

LOOPS in PHP

When you write code, you want the same block of code to run over and over again in a row. Instead of adding several almost equal code-lines in a script, we can use loops to perform this type of task .  We have the following looping statements in php :- while:- The while loop will print the loop index.  Then, the index will be checked with the while condition to process the code within the loop block. The loop will print

Read more
1 71 72 73 74 75 332