Download as pdf or txt
Download as pdf or txt
You are on page 1of 59

Assiut branch

Cloud computing infrastructure

Faculty of Computer and Information


Assiut University
Field training
Winter semester
2019-2020

Cloud computing infrastructure


Prepared and delivered by EC3 team
Outlines:
1. Cloud computing introduction
- What is Cloud computing?
- History of cloud computing
- Cloud Computing Evolution
- Characteristics of cloud computing
- Cloud Deployment Models
- Cloud service models
2. Linux fundamentals
- Getting Started with Red Hat Enterprise Linux
- Accessing the Command Line
- Managing Files from the Command Line
- Creating, Viewing, and Editing Text Files
- service management
- Installing and Updating Software Packages
3. Virtualization concepts
- What is virtualization
- Important Concepts in Compute Virtualization
- What is a hypervisor
- What is a virtual machine (vm)
- Virtualization Types
- Types of Compute Virtualization
- Characteristics of Virtualization

Cloud computing infrastructure Page 1


4. Deploying and management of VMs(Type 2)
- Installing Vmware workstation
- Creating VMs
- Configuring Remote Access (SSH, RDP)

5. Hypervisor type 1
- Xen Server installing and configuration
- Configuring Xen-server VMs
- Configuring Remote Access (SSH, RDP)
- Project(IaaS)

6. Containerization
- What is Docker
- Features of Docker
- Components of Docker
- How to manage and use Docker
- How to test your docker installation
- How to search for Docker images
- How to install Docker nginx image
- How to list running Docker containers
- How to run a command in a running container
- How to deploy and manage a registry server
- Docker hub

Cloud computing infrastructure Page 2


Cloud Computing Introduction

Cloud computing infrastructure Page 3


What’s Cloud Computing?
Cloud computing is a model for enabling ubiquitous, convenient, on-demand
network access to a shared pool of configurable computing resources (e.g.,
networks, servers, storage, applications, and services) that can be rapidly
provisioned and released with minimal management effort or service provider
interaction.

Why the Term “Cloud Computing”?


The cloud is a metaphor for the Internet. It is an abstraction of the Internet and
the infrastructure that underpins it. Computing refers to computing services
provided by a sufficiently powerful computer capable of providing a range of
functionalities, resources, and storage. Put together, cloud computing can be
understood as the delivery of on-demand, measurable computing services over
the Internet.

Cloud computing history


The abstract idea of cloud computing developed around circa 1950 when
mainframe computers were primarily used to access applications and data residing
on clients‟ localized infrastructure. The 1960s saw the birth of IT services coupled
with a growing demand for personal computers which used decentralized
computing resources. By the 1990s, the industry adopted dynamic client/ server

Cloud computing infrastructure Page 4


architectures, with service providers offering virtual private networks. This era saw
the demand for higher bandwidths and the „dot-com revolution.‟

The outsourcing of IT infrastructure management, however, did not begin till 2000.
Especially because by this time, companies had built up capabilities to provide
advanced server virtualization services via hosted cloud environments. Since then,
cloud computing has evolved to include the delivery of infrastructure, platform,
software and, more recently, network „as a service‟ encompassing IaaS, PaaS, SaaS
and NaaS. Today, collaborative computing (a diverse collection of enterprise
applications and virtualized social interaction tools) is offered as a service under
the utility model to dynamic clients. Evidently, these and related advancements
continue to grow at a rapid pace.

Cloud computing infrastructure Page 5


Cloud Computing Evolution

Characteristics of cloud computing

1. Resources Pooling
It means that the Cloud provider pulled the computing resources to provide
services to multiple customers with the help of a multi-tenant model. There are
different physical and virtual resources assigned and reassigned which depends on
the demand of the customer. The customer generally has no control or information
over the location of the provided resources but is able to specify location at a
higher level of abstraction

Cloud computing infrastructure Page 6


2. On - Demand Self-Service
It is one of the important and valuable features of Cloud Computing as the user can
continuously monitor the server uptime, capabilities, and allotted network storage.
With this feature, the user can also monitor the computing capabilities.

3. Easy Maintenance
The servers are easily maintained and the downtime is very low and even in some
cases, there is no downtime. Cloud Computing comes up with an update every time
by gradually making it better. The updates are more compatible with the devices
and perform faster than older ones along with the bugs which are fixed.

4. Large Network Access


The user can access the data of the cloud or upload the data to the cloud from
anywhere just with the help of a device and an internet connection. These
capabilities are available all over the network and accessed with the help of
internet.

5. Availability
The capabilities of the Cloud can be modified as per the use and can be extended a
lot. It analyzes the storage usage and allows the user to buy extra Cloud storage if
needed for a very small amount.

6. Automatic System
Cloud computing automatically analyzes the data needed and supports a metering
capability at some level of services. We can monitor, control, and report the usage.
It will provide transparency for the host as well as the customer.

7. Economical
It is the one-time investment as the company (host) has to buy the storage and a
small part of it can be provided to the many companies which save the host from
monthly or yearly costs. Only the amount which is spent is on the basic
maintenance and a few more expenses which are very less.

8. Security
Cloud Security, is one of the best features of cloud computing. It creates a
snapshot of the data stored so that the data may not get lost even if one of the
servers gets damaged. The data is stored within the storage devices, which cannot
be hacked and utilized by any other person. The storage service is quick and
reliable.

9. Pay as you go

Cloud computing infrastructure Page 7


In cloud computing, the user has to pay only for the service or the space they have
utilized. There is no hidden or extra charge which is to be paid. The service is
economical and most of the time some space is allotted for free.

10. Measured Service


Cloud Computing resources used to monitor and the company uses it for recording.
This resource utilization is analyzed by supporting charge-per-use capabilities.
This means that the resource usages which can be either virtual server instances
that are running in the cloud are getting monitored measured and reported by the
service provider. The model pay as you go is variable based on actual consumption
of the manufacturing organization.

Cloud Deployment Models


There are three types of cloud deployments categorized based on an organization‟s
ability to manage and secure assets as well as business needs.
Public cloud
Private cloud

Hybrid cloud

Public cloud:
Public cloud, in general, is SaaS services offered to users over the internet. It is the
most economical option for users in which the service provider bears the expenses
of bandwidth and infrastructure. It has limited configurations, and the cost is
determined by usage capacity. That said, the limitations of the public cloud are its
lack of SLA specifications. Despite high reliability, lower costs, zero maintenance

Cloud computing infrastructure Page 8


and on-demand scalability, the public cloud is not suitable for organizations
operating with sensitive information as they have to comply with stringent security
regulations.

Private cloud:
As the name suggests, the private cloud is used by large organizations to build and
manage their own data centers for specific business and IT needs/ operations. The
private cloud provides more control over customizability, scalability and
flexibility, while improving security of assets and business operations. This sort of
infrastructure can be built on premises or outsourced to a third party service
provider – either way; it has the ability to maintain the hardware and software
environment over a private network solely for the owner. Large- and medium-scale
financial enterprises and government agencies typically opt for private clouds.

Hybrid cloud:
Hybrid cloud is the combination of a private and public cloud, providing for more
flexibility to businesses while having control over critical operations and assets,
coupled with improved flexibility and cost efficiency. The hybrid cloud
architecture enables companies to take advantage of the public cloud as and when
necessary due to their easy workload migration. For instance, businesses can use
the public cloud for running high-volume applications like emails, and utilize
private clouds for sensitive assets like financials, data recovery, and during
scheduled maintenance and rise in demand.

Cloud computing infrastructure Page 9


Cloud Service Models

Cloud Providers offer services that can be grouped into three categories.
1. Software as a Service (SaaS): In this model, a complete application is offered
to the customer, as a service on demand. A single instance of the service runs on
the cloud & multiple end users are serviced. On the customers‟ side, there is no
need for upfront investment in servers or software licenses, while for the provider,
the costs are lowered, since only a single application needs to be hosted &
maintained. Today SaaS is offered by companies such as Google, Salesforce,
Microsoft, Zoho, etc.
2. Platform as a Service (Paas): Here, a layer of software, or development
environment is encapsulated & offered as a service, upon which other higher levels
of service can be built. The customer has the freedom to build his own
applications, which run on the provider‟s infrastructure. To meet manageability
and scalability requirements of the applications, PaaS providers offer a predefined
combination of OS and application servers, such as LAMP platform(Linux,
Apache, MySql and PHP), restricted J2EE, Ruby etc. Google‟s App Engine,
Force.com, etc are some of the popular PaaS examples.
3. Infrastructure as a Service (Iaas): IaaS provides basic storage and computing
capabilities as standardized services over the network. Servers, storage systems,
networking equipment, datacentre space etc. are pooled and made available to
handle workloads. The customer would typically deploy his own software on the
infrastructure. Some common examples are Amazon, GoGrid, 3 Tera, etc

Cloud computing infrastructure Page 10


Linux Fundamentals

Cloud computing infrastructure Page 11


Getting Started with Red Hat Enterprise Linux

We start by downloading an image from the internet and install CentOS 7 as a


virtual machine in Virtualbox. We will also do some basic configuration of this
new machine like setting an ip address and fixing a hostname.

CentOS 7 installing

The screenshots below will show every step from starting the virtual machine for
the first time (with the .iso file attached) until the first logon. You should see this
when booting, otherwise verify the attachment of the .iso file form the previous
steps. Select Test this media and install CentOS 7.

Carefully select the language in which you want your CentOS. I always install
operating systems in English, even though my native language is not English. Also
select the right keyboard, mine is a US qwerty, but yours may be different

Cloud computing infrastructure Page 12


Network Configuration

Select your time zone, and activate ntp.

Cloud computing infrastructure Page 13


Choose a mirror that is close to you. If you can't find a local mirror, then you can
copy the one from this screenshot (it is a general CentOS mirror).

It can take a couple of seconds before the mirror is verified.

I did not select any software here (because I want to show it all in this training).

Cloud computing infrastructure Page 14


As we want to install CentOS 7.5 Graphical User Interface (GUI), we will change
Minimal Install now. Click on Software Selection icon and then click on GNOME
Desktop from Base Environment panel.

After configuring network, location, software and all, you should be back on this
page. Make sure there are no warnings anymore (and that you made the correct
choice everywhere).

Cloud computing infrastructure Page 15


You can enter a root password and create a user account while the installation is
downloading from the internet. This is the longest step, it can take several minutes
(or up to an hour if you have a slow internet connection).

If you see this, then the installation was successful. Time to reboot the computer
and start CentOS 7 for the first time.

Cloud computing infrastructure Page 16


GUI login

Accessing the Command Line

Cloud computing infrastructure Page 17


Managing Files from the Command Line
# touch filename

The touch command can be used not only to create empty files, but also to update
the access and modification times of existing files.

# rm filename

The rm command can be used to remove the file

# mkdir

You can create directories inside existing paths with mkdir [directory] or create
a full path with mkdir -p [/full/path/to/directory .

# ls /var

the output of ls /var is sent to stdout (the screen)

Service management
# systemctl status name.service
# service status name.service

service systemctl Description


service name start systemctl start name.service Starts a service.
service name stop systemctl stop name.service Stops a service.
service name restart systemctl restart name.service Restarts a service.
service name reload systemctl reload name.service Reloads configuration.
service name status systemctl status name.service Checks if a service is running.
systemctl is-active name.service
service --status-all systemctl list-units --type service -- Displays the status of all
all services.

Cloud computing infrastructure Page 18


Installing and Updating Software Packages

What is YUM?
YUM (Yellowdog Updater Modified) is an open source command-line as well as
graphical based package management tool for RPM (RedHat Package Manager)
based Linux systems. It allows users and system administrator to easily install,
update, remove or search software packages on a system.

To keep your system up-to-date with all security and binary package updates, run
the following command. It will install all latest patches and security updates to
your system.

# yum check-update
# yum update
# yum update package-name

Example

# yum install firefox

The above command will ask confirmation before installing any package on your
system. If you want to install packages automatically without asking any
confirmation, use option -y as shown in below example.

# yum -y install firefox


Removing a Package with YUM

# yum remove firefox

Cloud computing infrastructure Page 19


Virtualization Concepts

Cloud computing infrastructure Page 20


What is virtualization?

Virtualization is the process of running a virtual instance of a computer system in a


layer abstracted from the actual hardware. Most commonly, it refers to running
multiple operating systems on a computer system simultaneously. To the
applications running on top of the virtualized machine, it can appear as if they are
on their own dedicated machine, where the operating system, libraries, and other
programs are unique to the guest virtualized system and unconnected to the host
operating system which sits below it.

Cloud computing infrastructure Page 21


Important Concepts in Compute Virtualization

What is a hypervisor?
A hypervisor is a program for creating and running virtual machines. Hypervisors
have traditionally been split into two classes: type one, or "bare metal" hypervisors
that run guest virtual machines directly on a system's hardware, essentially
behaving as an operating system. Type two, or "hosted" hypervisors behave more
like traditional applications that can be started and stopped like a normal program.
In modern systems, this split is less prevalent, particularly with systems like KVM.
KVM, short for kernel-based virtual machine, is a part of the Linux kernel that can
run virtual machines directly, although you can still use a system running KVM
virtual machines as a normal computer itself.

What is a virtual machine?


A virtual machine is the emulated equivalent of a computer system that runs on top
of another system. Virtual machines may have access to any number of resources:
computing power, through hardware-assisted but limited access to the host
machine's CPU and memory; one or more physical or virtual disk devices for
storage; a virtual or real network interface; as well as any devices such as video
cards, USB devices, or other hardware that are shared with the virtual machine. If
the virtual machine is stored on a virtual disk, this is often referred to as a disk
image. A disk image may contain the files for a virtual machine to boot, or, it can
contain any other specific storage needs.

Cloud computing infrastructure Page 22


Key Properties of Virtual Machines
VMs have the following characteristics, which offer several benefits.
Partitioning
Run multiple operating systems on one physical machine.
Divide system resources between virtual machines.
Isolation
Provide fault and security isolation at the hardware level.
Preserve performance with advanced resource controls.
Encapsulation
Save the entire state of a virtual machine to files.
Move and copy virtual machines as easily as moving and copying files.
Hardware Independence
Provision or migrate any virtual machine to any physical server.

Cloud computing infrastructure Page 23


Types of Compute Virtualization

Characteristics of Virtualization

Cloud computing infrastructure Page 24


Deploying and management of VMs (Type 2)

Cloud computing infrastructure Page 25


Installing Vmware workstation
Step1:

Step2:

Cloud computing infrastructure Page 26


Step3:

Step4:

Cloud computing infrastructure Page 27


Step5:

Step6:

Cloud computing infrastructure Page 28


Step7:

Step8:

Cloud computing infrastructure Page 29


Creating VMs
Once the installation is done start VMware Workstation to create your first virtual
machine. To do this click Create a New Virtual Machine from the home page or
select New Virtual Machine from the File-menu.

The next step is to select an installation medium.

Cloud computing infrastructure Page 30


If you choose Easy Install then you must provide information about the computer
name, license and an administrator password. You can install Windows 7 without a
license key and activate it later.

The last details to provide are for the virtual hard disk that will be created. The
maximum disk size is what Windows inside the virtual machine will see. It is not
necessarily the disk space needed when creating this virtual machine. If you would
select the check box for Allocate all disk space now then 60 GB of you disk space
would be used to create the virtual disk. Otherwise (the default) the virtual disk
will only consume a few megabytes and will grow in size once you start adding
data into your virtual machine. The benefit of pre-allocating the disk space is that
your hard disk can not run out of disk space when running the virtual machine.

Keep the setting to split the disk into multiple files enabled. Otherwise you will
end up with a very large file that might be unpractical to work with. It might not fit
on portable media for example.

Cloud computing infrastructure Page 31


And then click finish

Once the virtual machine is created and powered on the Easy Install process will
kick off and install the operating system for you.

Cloud computing infrastructure Page 32


Once the operating system has been installed and is running, go
to VM > Settings to adjust any hardware settings you changed or didn‟t change
from Step 7. Some options are only editable when the virtual machine is off.

At any time when the VMware virtual machine is on, you can shut it down or
restart it from the VM > Power menu. This is also how you suspend the VM,
which means to pause it so that you can resume at that exact same point the next
time you access it. This is different from powering it on from an off state where
you have to log back in again, open programs and files, etc.

With the same way, you can create a vm with linux based operating system
(CentOS or ubuntu).

Configuring Remote Access (RDP)


Enable Remote Desktop for Windows 10 Pro

1. Open Control Panel.


2. Click on System and Security.
3. Under the “System” section, click the Allow remote access link.

Cloud computing infrastructure Page 33


4. Under the “Remote Desktop” section, select the Allow remote connections
to this computer option.
5. Click the Apply button.
6. Click the OK button.

Click the Windows Start button, then type Command Prompt and choose
it from the Start menu. This opens a new window, shown at right. In this
window, type ipconfig and press Enter.

Cloud computing infrastructure Page 34


and allocate your IP address

After you complete the steps, you can use the Remote Desktop app or the
Remote Desktop Connection client from another computer to connect to
your device remotely.

Cloud computing infrastructure Page 35


Log in as normal on the Windows security screen. When connecting for the first
time, you will need to click Use a different account, and then enter your
username and password.

Configuring Remote Access (SSH)


Secure Shell (SSH) is a cryptographic protocol that allows a client to interact with
a remote server in a secure environment.

Step 1: Install OpenSSH Server Software Package

sudo yum –y install openssh-server openssh-clients

Cloud computing infrastructure Page 36


Step 2: Starting SSH Service

sudo systemctl start sshd

Step 3: Check sshd status

sudo systemctl status sshd

Once the service is started, run #ifconfig command and get you server ip and use a
program like putty to access your server remotely using ssh service

Cloud computing infrastructure Page 37


Hypervisor type 1

Cloud computing infrastructure Page 38


Xen Server installing and configuration
Step1: The first step in the installation is to download the XenServer ISO file.

Step2: burn the ISO to a CD or DVD.

Step3: boot from this CD or DVD.

Cloud computing infrastructure Page 39


Step4:

Step5:

Cloud computing infrastructure Page 40


Step6:

The next prompt is the obligatory EULA (End User License Agreement). Feel free
to read the whole thing, as your supposed to anyways right, otherwise using the
keyboard arrows move the cursor over to the “Accept EULA” button and hit enter.

Step7:

The next screen requests the installation device. In this example the RAID setup on
the server is where XenServer will be installed.
The RAID system is reflected as “sda – 556 GB [IBM ServeRAID-MR10k]” For
this guide, thin provisioning is not necessary. Make sure the the
asterisk (*) character is next to the hard drive selection to install XenServer and tab
to the “OK” button.

Cloud computing infrastructure Page 41


Step8:
The next screen will prompt the user for the location of the installation files. Since
the installer was boot locally with a CD/DVD/USB, make sure to select the “Local
Media” option.

Step9:
The next step allows for the installation of Supplemental Packs (SP) at the time of
install. For this guide, none of the supplemental packs available will be installed at
this point but will be covered later once XenServer is up and running.

Cloud computing infrastructure Page 42


Step10:
The next screen will ask if the user wishes to verify that the installer media is not
corrupt. Generally this is a good idea but is a personal choice. All in all the
verification on this test server took about 3 minutes from a CD.

Cloud computing infrastructure Page 43


Step11:
Configure the password for your root account that will be used for connecting the
XenServer Host from XenCenter.

Step12:
Choose from the options to configure networking as DHCP for your Management
interface on the host.

Cloud computing infrastructure Page 44


Here you have to configure the Hostname and DNS settings as per your
requirements. We will be choosing its DNS to set it automatically via DHCP as
shown below and then click on the 'OK' button to move to next option.

Step13:

Select the Time Zone and City

Cloud computing infrastructure Page 45


Step14:

Choosing the system time as NTP while you can also choose it from its manual
time entry

Step15:

Installation

Cloud computing infrastructure Page 46


Step16: Installation complete

Cloud computing infrastructure Page 47


XenServer Dashboard

Once you have XenServer installed, you need to download and


install XenCenter. XenCenter allows you to remote manage a Citrix XenServer.
All you need is the server‟s IP, username, and password.

Cloud computing infrastructure Page 48


Once you are connected you can start or create VMs on this server.

Cloud computing infrastructure Page 49


Project (IaaS)
- Installing Xen-server and creating 2 vm (linux &windows)
- Manage xen-server by xen-center.
- Managing VMs using remote access
RDP for windows and SSH for linux
- Enable CIFS iso library and connecting it with xen-server.

Team (2 or 3 at max)

Cloud computing infrastructure Page 50


Containerization

Cloud computing infrastructure Page 51


What is Docker
Docker is a container management service. The keywords of Docker are develop,
ship and run anywhere. The whole idea of Docker is for developers to easily
develop applications, ship them into containers which can then be deployed
anywhere.

The initial release of Docker was in March 2013 and since then, it has become the
buzzword for modern world development, especially in the face of Agile-based
projects.

Features of Docker
 Docker has the ability to reduce the size of development by providing a
smaller footprint of the operating system via containers.
 With containers, it becomes easier for teams across different units, such as
development, QA and Operations to work seamlessly across applications.
 You can deploy Docker containers anywhere, on any physical and virtual
machines and even on the cloud.
 Since Docker containers are pretty lightweight, they are very easily scalable

Cloud computing infrastructure Page 52


Components of Docker
Docker has the following components
 Docker for Mac − It allows one to run Docker containers on the Mac OS.
 Docker for Linux − It allows one to run Docker containers on the Linux
OS.
 Docker for Windows − It allows one to run Docker containers on the
Windows OS.
 Docker Engine − It is used for building Docker images and creating Docker
containers.
 Docker Hub − this is the registry which is used to host various Docker
images.
 Docker Compose − this is used to define applications using multiple
Docker containers.

How to install and use Docker on RHEL 7 or Centos 7


sudo yum remove docker docker-common docker-selinux docker-engine
sudo yum-config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce

How to manage and use Docker


#sudo systemctl enable docker.service
This command is used to enable docker service
#sudo systemctl start docker.service
This command is used to start docker service

#sudo systemctl stop docker.service


This command is used to stop docker service

#sudo systemctl restart docker.service


This command is used to restart docker service

#sudo systemctl status docker.service


This command is used to show status of docker service
#docker info

Get system-wide information about Docker.

Cloud computing infrastructure Page 53


How to test your docker installation
Docker images are pulled from docker cloud/hub such as docker.io or
registry.access.redhat.com and so on. Type the following command to verify that
your installation working:

#docker run hello-world


Sample outputs:

How to search for Docker images


Now you have working Docker setup. It is time to find out images. You can find
images for all sort of open source projects and Linux distributions. To search the
Docker Hub/cloud for nginx image run:

# docker search nginx

Cloud computing infrastructure Page 54


Sample outputs:

How to install Docker nginx image


To pull an image named nginx from a registry run:
#docker pull nginx

How to list running Docker containers


#docker ps
#docker ps –a

Sample outputs:

CONTAINER ID IMAGE COMMAND CREATED


STATUS PORTS NAMES
bb9d85a56a92 nginx "nginx -g 'daemon of…" 55 seconds ago
Up 54 seconds 0.0.0.0:80->80/tcp my-nginx-c2
fe0cdbc0225a nginx "nginx -g 'daemon of…" About a minute ago
Up About a minute 80/tcp my-nginx-c1

You can use CONTAINER ID to stop, pause or login into the container.

Cloud computing infrastructure Page 55


How to run a command in a running container
Run ls /etc/nginx command for my-nginx-c1 container

#docker exec fe0cdbc0225a ls /etc/nginx

OR

#docker exec my-nginx-c1 ls /etc/nginx

Want to gain bash shell for a running container and make changes to nginx image
#docker exec -i -t fe0cdbc0225a bash

OR

#docker exec -i -t my-nginx-c1 bash

How to remove docker containers


#docker rm my-nginx-c1
#docker ps –a

How to deploy a registry server


Before you can deploy a registry, you need to install Docker on the host. A registry
is an instance of the registry image, and runs within Docker.

Run a local registry


Use a command like the following to start the registry container:

$ docker run -d -p 5000:5000 --restart=always --name registry registry:2

Copy an image from Docker Hub to your registry


You can pull an image from Docker Hub and push it to your registry. The
following example pulls the ubuntu:16.04 image from Docker Hub and re-tags it
as my-ubuntu, then pushes it to the local registry.
Finally, the ubuntu:16.04 and my-ubuntu images are deleted locally and the my-
ubuntu image is pulled from the local registry.

Cloud computing infrastructure Page 56


1. Pull the ubuntu:16.04 image from Docker Hub.

$ docker pull ubuntu:16.04

2. Tag the image as localhost:5000/my-ubuntu. This creates an additional tag


for the existing image. When the first part of the tag is a hostname and port,
Docker interprets this as the location of a registry, when pushing.

$ docker tag ubuntu:16.04 localhost:5000/my-ubuntu

3. Push the image to the local registry running at localhost:5000:

$ docker push localhost:5000/my-ubuntu

4. Remove the locally-cached ubuntu:16.04 and localhost:5000/my-


ubuntu images, so that you can test pulling the image from your registry.
This does not remove the localhost:5000/my-ubuntu image from your
registry.

$ docker image remove ubuntu:16.04

$ docker image remove localhost:5000/my-ubuntu

5. Pull the localhost:5000/my-ubuntu image from your local registry.

$ docker pull localhost:5000/my-ubuntu

6. To stop the registry, use the same docker container stop command as with
any other container.

$ docker container stop registry

7. To remove the container, use docker container rm.

$ docker container stop registry && docker container rm -v registry

Cloud computing infrastructure Page 57


References:
https://data-flair.training/blogs/features-of-cloud-computing/

https://opensource.com/resources/virtualization

https://masteringvmware.com/how-to-install-vmware-workstation-pro-step-by-
step/

https://lts.lehigh.edu/services/stepwise-instructions/configure-remote-desktop-
windows-10

https://linoxide.com/tools/configure-citrix-xenserver-6-5-vmware-workstation/
https://www.nextofwindows.com/how-to-setup-xenserver-open-source-
virtualization-with-powerful-windows-client

Cloud computing infrastructure Page 58

You might also like