Final Review Flashcards
(76 cards)
What is IaaS?
IaaS, or Infrastructure as a Service, is a cloud computing model that provides on-demand access to computing resources such as servers, storage, networking, and virtualization.
IaaS is attractive because acquiring computing resources to run applications or store data the traditional way requires time and capital.
Why use Docker and containers?
Faster software delivery, Portability, Scalability, Continuous integration, Health checks, Security, Packaging, Environment management
What does the future of QR Codes look like?
With the global usage and exposure of various QR code campaigns from multiple industries, it’s empirical that the QR code’s usefulness will keep growing.
How to set up an app for AWS?
- Get a key pairs - pem file, save it locally, change properties to allow only the signed in user full control - disable inheritance
- Create an instance using the new key pair, set the security group to allow incoming port 8080
- Open a remote window in VSCode, edit config to use the Hostname of the new instance, user must be ec2-user, identityFile is the full path of the local pem file, then Connect to Host
- On the Linux - remote host, install docker, start the daemon, copy local files (SNAPSHOT and dockerfile), and tell Linux to restart docker at boot
- Build the docker image and create a docker container from it, then run it
What is the command to install Docker on AMI Linux?
sudo yum install -y docker
What is the command to start Docker on AMI Linux?
sudo service docker start
What is the command(s) to copy files to Docker on AMI Linux?
scp -i Info5059Keys.pem case-0.0.1-SNAPSHOT.jar ec2-user@ec2-yourpublicip.compute1.amazonaws.com:/home/ec2-user
scp -i Info5059Keys.pem dockerfile ec2-user@ec2-yourpublicip.compute-1.amazonaws.com:/home/ec2-
user
What is the command to tell the Linux AMI to restart docker at boot?
sudo systemsctl enable docker
What is the command to build a docker image on the Linux AMI?
sudo docker build -t name:casestudy .
What is the command to tell the Linux AMI to create a docker container and run it?
sudo docker run -dit –restart unless-stopped -p 8080:8080 name:casestudy
What is Docker?
A platform for shipping and running applications which enables you to separate your applications from your infrastructure. It provides the ability to package and run an application in a loosely isolated environment called a container.
What is a Docker container?
A lightweight, standalone, executable package of a piece of software that includes everything needed to run it. It is relatively well isolated from other containers and its host machine, and when removed, any state changes that aren’t stored in persistent storage disappear.
What is a Docker image?
A standardized package that includes all of the files, binaries, libraries, and configurations to instantiate and run a container. They can be tracked just like code with version control software like Git.
What is a Dockerfile?
A textfile that contains commands to build an image. Using docker build, users create images automatically by executing several commands in succession.
Docker Hub
The official repository, which holds different images of a Java container used as both the build and runtime environment via OpenJDK (open-source implementation of Java).
What problem does Docker try to address?
True independence between applications and infrastructure.
What is the main difference between a docker container and a VM?
container contains no OS
What is the main difference between a docker image and a docker container?
image is the class of the container instance
What command is used to create a docker image?
docker build
How does the docker daemon keep track of docker images?
internal image id 12 bytes
Why would you want to create a tag?
so you don’t need to remember the 12 bytes
What command is used to create a docker container?
docker run
How can we expose the host OS port to a docker container?
with the -p switch
What command would I use to view a LABEL for a docker container?
Inspect