Terraform Assignment – 2 by Johnson

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Ansible playbook demo.yaml -name= install nginxhosts= webservertasks=-name: install nginx in serveryum:name: httpdstate: latest Terraform script to insstall ansible and python provider “aws” {access_key = “*******************”secret_key = “*********************”region = “eu-west-3”} resource “aws_instance” “web” {ami = “ami-12345”instance_type = “t3.micro”count = 1tags = {Name = “Demo”}} provisioner “file” {source = “etc/demo.yaml” destination = “etc/demo.yaml”} provisioner “remote-exec” {inline

Read more

Terraform Assignment – 1by Johnson

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now provider “aws” {access_key = “************”secret_key = “************”region = “eu-west-3”} provider “github” {token = “*************”} variable “instance_count” {type = numberdescription = “This is for demo of number variable”default = 3} variable “reponame” {type = stringdescription = “This is for demo of string variable”default = “day3-broad”} variable “users” {type = “list”default = [“demo1”, “demo2”, “demo3”]description =

Read more

List of docker file instructions and its Brief Summary?

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now FROM A FROM command allows you to create a base image such as an operating system, a programming language, etc. All the instructions executed after this command take place on this base image. It contains an image name and an optional tag name. If you already have the base image pulled previously in your

Read more

what is the difference between docker exec and docker attach?

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker exec The docker exec command runs a new command in a running container. docker attach The docker attach 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.

Read more

What is the difference between docker stop and kill?

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker stop The docker stop command stops the container gracefully and provides a safe way out. If a docker stop command fails to terminate a process within the specified timeout, the Docker issues a kill command implicitly and immediately. In Docker, there are two ways we can use the docker stop command to stop a process. We can use container Id or container

Read more

Components of Docker and its Brief Summary

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now The Docker components are divided into two categories; basic and advanced. The basic components include Docker client, Docker image, Docker Daemon, Docker Networking, Docker registry, and Docker container, whereas Docker Compose and Docker swarm are the advanced components of Docker.  Basic Docker Components: Lets dive into basic docker components: Docker Client: The first component of

Read more

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

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker pull: pull the image from the docker hubdocker ps: list the running containersdocker ps -a: list the running and stopped containersdocker start start the containerdocker stop: stop the one or more running containersdocker restart: restart the containerdocker rm: remove the containerdocker exec: runs a new command in a running containerdocker image: show all

Read more

6. What is the differenet between CMD vs Entrypoint? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now CMD: Default parameters can be override from the Command Line Interface when container is runningENTRYPOINT: Default parameters cannot be override from the Command Line Interface when Container running

Read more

5. List of dockerfile instructions and its Brief Summary? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now FROM: specify the valid docker image name, LABEL: metadata infomation to the image, ADD: copy files, directories and remote URL files to the destination, RUN: executes any command, WORKDIR: set the working directory, ENV: set environment variables with key and value, COPY: copy files, directories and remote URL files to the destination, MAINTAINER: author

Read more

1. Components of Docker and its Brief Summary? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Docker follows Client-Server architecture. Docker having three main components Docker Client, Docker Host, and Docker Registry.Docker Client: Docker client uses REST APIs to communicate with the Docker server when the client send commands to the server, server receives commands in the form of REST APIs request.Docker Host: Docker Host is used to provide an

Read more

4. What is the differenet between docker exec and attach? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker exec executes a new command or create a new process in the container. while docker attach just connects the standard input or output or error to a running container using the container ID or name

Read more

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

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker info: displays information about docker installation docker ps : to check the running containers docker ps -a : to check all the containers which are running and exited docker images: to check the list of images docker pull: to pull the image from registry docker push: to push the created image to registry

Read more

3. What is the differenet between docker stop and kill? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Stop: The docker stop command stop one or more running containers, By sending “SIGTERM” signal inside the container and stop the processKill: The docker kill command kill one or more running containers, By sending “SIGKILL” signal inside the container and kill the process immediately

Read more

5. List of Docker file instructions and its Brief Summary? by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now FROM : To get the base image MAINTAINER: author of the generated image ADD: It is similar to COPY but it supports get remote URLs and also unzips tar balls RUN: Run is used to run specific commands. CMD: This is similar to ENTRYPOINT it allows the override the command ENTRYPOINT: after starting the

Read more

2. What is the differenet between docker pause and unpause? by Ramalakshmi

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Pause: 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 suspendedUnpause: The docker unpause command unsuspends all processes in the specified containers.

Read more

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

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker ps — To check running containers docker images — To check pulled images docker pull — To pull images from docker hub registry docker push — To push custom images to docker hub registry docker run — To start and run a container docker exec — To enter inside the container with shell

Read more

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

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now when we use Docker attach it will takes to PID 1 and it will wait for input and when we exit the terminal the container is no longer up. When you use docker exec and if you exit the container is still running. Both are used to check the running container if you want

Read more
1 30 31 32 33 34 339