Morgan State University Docker Containers Discussion

Instructions

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Install Docker on a Linux

VM

. You don’t want to install it on your computer, because it will interfere with other functions on your computer. Open a Linux VM, set the network configuration to be NAT. Download and install Docker inside the Linux VM as an admin. The remaining exercises are to be performed inside the Linux VM. Open a terminal inside the Linux VM. The following exercises won’t run on Windows VM.

A few useful Docker sites:

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Google “How to install Docker on Centos VirtualBox”

https://docs.docker.com/engine/install/centos/

Don’t install other stuff. Only run the commands shown below. Other software or packages will have dependencies and may cause your VM to have inconsistent dependencies. That will be a nightmare to upgrade all the dependencies to a workable stage.

Below link is after you installed docker.

https://docker-curriculum.com/

(1) Open a terminal from your CentOS v7 VM

(2) $ sudo su –

(Change you to super user. The prompt changes from “$” to “#”.)

(3) # yum install docker

(4) # systemctl start docker

(5) # systemctl status docker

(To be sure that docker is running.)

(6) # docker images

(There is no docker images.)

(7) # docker run hello-world

(run the built-in application “hello-world” inside Docker.)

(8) # docker images

(show that “hello-world” application is running).

(9) # docker pull busybox

(go to internet to download busybox application)

(10) # docker run busybox

(11) # docker run busybox echo “hello world from Sophia”

Change “Sophia” to your name.

(12) # docker ps

——————————————————————————–

Snapshots of the results for the following required submissions.

(Q1): From the terminal, type in the following commands and take snapshots after running each command.

To validate the installation is correct, type

$ docker run hello-world

(Q2): Run a Busybox container. The pull command fetches the busybox image from the Docker registry and saves it to the VM.

$ docker pull busybox

(Q3): Find available docker images in your VM.

$ docker images

Check that busybox container is

(Q4): Run the Docker container busybox.  When you run the Docker image bosybox, Docker loads up the container and then runs a command in the container. When we run “docker run busybox”, there is no command, so Docker did nothing and exited.

$ docker run busybox

If you provide a command after “docker run busybox”, that command will be executed

$ docker run busybox echo “hello world from Jasper”

Replace ‘Jasper’ with your name. That way I know that you are running Docker by yourself. Take a snapshot.

(Q5): Run the following command to check what containers are currently running.

$ docker ps

It should be no docker running.

Run the following command to see a list of all containers that we ran. Notice the STATUS column shows that these containers exited a few minutes ago. Take a snapshot.

$ docker ps–a

Run the following local host command to see the difference with and without Docker.

$ ps -a

(Q6): Compare Virtual Machine (VM),

Container

, and

Sandbox

with the following features in the table.

Features\Types

VMContainerSandbox

Same OS as host OS

Share data with host

Data remains when the VM / Container / Sandbox is closed

Additional OS overhead

Performance

Storage space

Communication among the applications and host

Security level

Examples of applications

Advantages

Disadvantages

Attachments

Containers_Sandboxing.pdf

(31.24 KB)

Containers.pdf

(387.13 KB)

Containers_VM.pdf

(1.5 MB)

Intro_Containers_VMs_Docker.pdf

(328.66 KB)

Intro_Docker_Containers.pdf

(568.71 KB)

sandbox_virtual machine_.pdf

(291.62 KB)

Virtual containers are replacing sandboxing as a technology option – Infosecurity Magazine.pdf

(595.03 KB)

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER