Trending December 2023 # Complete Guide On Loan Note With Working And Example # Suggested January 2024 # Top 15 Popular

You are reading the article Complete Guide On Loan Note With Working And Example updated in December 2023 on the website We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested January 2024 Complete Guide On Loan Note With Working And Example

What is a Loan Note?

The term “loan note” refers to the contract between a lender and a borrower that clearly outlines the legal obligations of both parties involved in the transaction. It is also seen as the extended version of the IOU document between a lender and a borrower.

Start Your Free Investment Banking Course

Download Corporate Valuation, Investment Banking, Accounting, CFA Calculator & others

How Does Loan Note Work?

A loan note represents a legally binding contract between a borrower and a lender, with both parties committed to the terms and conditions outlined in the document. Either the borrower or lender can draw it up. Typically, either party can invoke the right to seek arbitration, as stated in a typical loan note, if they fail to meet any contractual obligations. In most cases, the lenders invoke the loan notes to recover their money when the borrower defaults.

When a loan note is signed, it is considered that both borrower and lender have read the entire document and agree to the legal terms and conditions cited in the note. Both parties should have notarized copies of the signed and original loan note. Given the stringent legal conditions, they should document all the transactions, disbursals, and repayment with a receipt.

Business loans

Purchases (car, furniture, etc.)

Real estate loans

Student loans

Lending to friends and family

Example of Loan Note

Let us look at an example to understand the concept. Recently, David approached a retail investor to lend him $200,000. Unfortunately, the investor is not a close acquaintance of David, so they don’t share a relationship of trust. However, the investor agreed to pay him the money subject to a loan note, safeguarding him against David’s inability to repay.

The loan note included the amount of the loan, interest rate charged, loan tenure, schedule of repayment, associated fines or penalties, and the course of action if David fails to repay the principal and interest on time. It also clearly outlined the loan disbursal schedule and repayment timeline. It is a legally binding agreement, so both parties must honor the document’s terms and conditions.

Advantages of Loan Note

It enables the lender to act, claim, and recover the loan amount if the borrower fails to pay it back within the prefixed timeline.

As it is legally enforceable, the lender can drag the borrower to court in the case of a default to safeguard its interest.

It considers a secured lending instrument while dealing with a large amount of money, especially if the borrower and the lender won’t have a longstanding relationship.

It secures the lender and helps claim the principal amount in case of bad debts.

Start-ups or new entrepreneurs usually use it to access seed capital from friends and family.

Individuals use it to avoid undue tax obligations due to a lump sum payment from a settlement or cash-out transaction.

It is issued to borrowers with a good credit rating leading to a healthy credit risk profile.

First, it is usually a lengthy and legally binding document, making it very difficult for the involved parties to read. However, failure to read thoroughly can get them into deeper trouble.

In some cases, it also includes early payment penalties that prevent the borrower from closing the loan account before its tenure.

Although it provides legal recourse for both parties, the legal reviews are time-consuming.

Key Takeaways

Some of the key takeaways of the article are:

It refers to the legally binding signed agreement between a borrower and a lender that outlines the commitments and obligations of both parties involved in the transaction.

A typical loan note includes all the terms & conditions of the loan, such as the amount of the loan, repayment schedule, loan tenure, interest rate, and fees & penalties.

This agreement is usually associated with business loans, purchasing cars or homes, student loans, or lending to friends and family.

It enables the lender to act, claim, and recover the loan amount if the borrower fails to pay it back within the prefixed timeline.

It is usually a very long document, making it very difficult to read and time-consuming. However, it is important to read the contract carefully as it is legally enforceable.


So, it can be seen that a loan note is usually issued when the loan amount is relatively on the higher side because it is considered a secured mode of lending. The legal contract safeguards the interest of the involved parties in the loan transaction, especially that of the lender. However, like any other financial instrument, it also has shortcomings that can be overcome to some extent through careful understanding of the terms and conditions of the note.

Recommended Articles

You're reading Complete Guide On Loan Note With Working And Example

Complete Guide To What Is Laravel Artisan With Example

Introduction to Laravel Artisan

Web development, programming languages, Software testing & others

What is Laravel Artisan?

Laravel Artisan is one of the three command line interfaces found in the Laravel framework.

It is a helpful command line interface, assisting developers into developing applications though the numerous easy to read commands. One can also create custom codes in order to increase the efficiency of the applications.

But the efficacy of Artisan does not end here.

Developers can generate migrations, publish assets of packages and many similar tasks. Artisan has a whole lot of built in command which are a boon to the developer.

Though a whole lot generally work on custom commands, there are many who prefer the inbuilt ones.

php artisan list

This query will give a list of commands which certainly increases the efficiency of the entire process and saves a whole lot of time.

With these commands one can go ahead and create a plethora of functions, namely, controller, migration, create, mail, et al.

Laravel 3.7 was the initial offering from PHP and it was quite basic in its code structure. Though in spite of that, it had some excellent features to boot.

With the release of Laravel 5.7, added on to the newer sets of commands, some existing packages too are available.

Laravel 4, is primarily dependent on the Symfony framework.

How does Laravel Artisan work?

The Laravel Artisan serve command helps run application on the PHP Development Server.

A developer has the option to use Laravel Artisan serve for a variety of roles.

There are other two functions that the Laravel Artisan serve support. The change of application address by using the host and port.

The application’s port can be changed by using the port option.

The Laravel Artisan works in two ways, through the inbuilt commands and custom commands.

The Laravel Artisan has a robust set of inbuilt commands that can help one create a variety of functions.

On the other hand, developers also have the option of creating their custom made commands.

Example of Laravel Artisan

Example which will exemplify how a custom command can be created:

Create the custom command:

Execute the command on the terminal:

php artisan make:command CreateEmployeeName

A file is now created in the directory: app/console/Commands

The name of the file would be: CreateEmployeeName

The complete code would be:

<?php namespace AppConsoleCommands; use IlluminateConsoleCommand; class CreateEmployeeName extends Command { /** * The name and signature of the console command. * * @var string */ protected $user = 'command:name'; /** * The console command description. * * @var string */ protected $description = 'Command description'; /** * Create a new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * Execute the console command. * * @return mixed */ public function handle() { } }

The immediate next step is to go ahead and update the Laravel command which we have just created.

While doing that a few queries have to defined for the command structure to properly function:

$user: Create admin

$description: Create the account of the user which would be having admin role.

The role field which is located in the user table also needs to be updated.

protected $commands = [ CommandsCreateEmployeeName::class, ];

Once the chúng tôi has been updated, the custom command can now be run since it has become a part of the list. You can check the same by using the list command. However, if you still think this will work, you are wrong. It won’t. Commands work on logic, which has to be built.

Once the migration table is created update the model array:

protected $fillable = [ 'name', 'email', 'password', 'role' ];

Now you can go ahead and update the handle() as per your wish:

Few quick examples to look at:

1. To begin a Laravel Artisan project


php artisan serve


2. To enable the caching mechanism


php artisan route:cache

3. To view help, options and arguments


php artisan help serve

4. Generating a new command class


php artisan make:console GoCommand Conclusion

PHP Artisan has all the elements which will help the developer build a complete application. And as we have discussed, it is not simply limited to building of applications. One can do a host of other activities taking the help of the list of commands, that PHP Artisan holds. Also, with custom coding, the example of which we encountered above, this entire process of development becomes a lot more customized and personal. Needless to say, there is a rapid increase in the efficiency level too.

Recommended Articles

We hope that this EDUCBA information on “Laravel Artisan” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

Complete Guide To Golden Handshake With Working

What is Golden Handshake?

Start Your Free Investment Banking Course

Download Corporate Valuation, Investment Banking, Accounting, CFA Calculator & others


Normally employment contracts contain a clause of severance package to be given to the employees by the employer when they lose out on their active jobs due to professional negligence or due to lay-offs or due to voluntary retirement. The severance package is offered to the employees who are either engaged in a high-risk job or they are employed as a top executive in the organization. This is primarily done to protect employee interests when they hold top executive posts. The severance package is the collection of the benefits offered by the employer to the employee when the services of the employees are ended abruptly or they are laid off from the organization. Normally, the employer and employee have to sign the severance agreement or contract. The total amount of the money receivable to the employee depends upon the tenure’s length they stay in the organization. Such payments may also include unutilized vacations or sick leaves and business expenses that are yet to be reimbursed.

How does it work?

Whenever a business feels that the top employee has attained an age where he could be asked to retire or whenever business reaches the point that they have to cut down the costs of the employees, they initiate the golden handshake clause as per the contract. They communicate with the employees who hold the top executive positions in the organization. In such a scenario, it is not the mistake of the employees and yet their services are being terminated. The severance package under the golden handshake clause mitigates the imminent financial risk resulting from an abrupt termination of services. The scenarios where a golden handshake is prominently applied are when the employee is closed to his retirement age or either the business is looking towards the reduction in costs of operations.

Examples of Golden Handshake Reasons for Golden Handshake

In the business lifecycle, there comes a point beyond which if the business continues to undertake the rising costs of operations, this could result in imminent failures for the business. The business may shut down eventually and this would end up affecting the employees who are at the bottom-most level or tier in the organization. Therefore, as a defense mechanism and to protect the interests of all employees, the top executives are asked to take up voluntarily retirement or they are laid off by the business which then helps the business to curb their rising costs. Since the employees who held the top-level positions in the organizations were not at any fault, the business offers them a golden handshake which helps the laid-off employees to mitigate their financial risk.

Golden Handshake vs Golden Parachute

The golden parachute is termed as a package that the employee receives if the business has been taken over by the other company and the services of the employee are terminated as the result of the merger. The golden parachute is also given to key and top executives employed in the business. The package under the golden parachute may be composed of severance pay, stock options and cash bonuses. The golden parachute can be regarded as a poison pill which undertaken by the target business in the form of employee exodus to discourage the attempts of a hostile takeover by the acquiring business.  On the other hand, the golden handshake can be compared to as golden boot offered by the organization to offered with the intent of initiating their voluntary retirement from the organization. The golden handshake is nowhere related to mergers and takeovers.


Normally top-level executives or employees are engaged in a high-risk job. Taking the nature of risk into the account, the employer agrees to offer a hefty package in the form of a golden handshake. This motivates the employee to work diligently for the employer.

Normally when top-level executives change jobs, they take into account the level of severance package offered by the employer along with the salary offered.

The golden handshakes take care of the financial security of the employee when he or she faces unemployment and job loss.

It helps employees to seek out better alternatives and opportunities as they won’t have to worry on the account of immediate money requirements or funding needs.

The golden handshake offered to the employee is often not performance-based. The employment contract does not add the stipulation or clause that the employee has to perform throughout his employment tenure. Therefore, when employees are fired under the ground of non-performance, the employees would still be eligible for the severance package.

The organization may induce early retirements for the employees deliberately to tone down the costs of increasing operations.

They could further initiate it to cut down on their labor force to meet the demand of an ever-changing business environment or to cope up with a takeover.

If the top executives take up a golden handshake then they have to accept the non-compete clause under the severance package.

A non-compete clause states that the top executive would be allowed to open any rival business for predefined tenure once terminated from the organization.


The golden handshake is one of the clauses in the employment contract of the employee who holds top executive or management level position in the organization. The golden handshake offers a severance package which helps employee mitigate their financial risk.

Recommended Articles

Complete Guide On Django Middleware

Introduction to Django Middleware

Web development, programming languages, Software testing & others

Middleware Activation

Include the middleware item in the MIDDLEWARE list within the chúng tôi file to activate a middleware. The list below holds the default middleware items generated when a Django project starts. The order of declaration for the middleware components has significance.

MIDDLEWARE = [ '', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',

The following explains the necessity and usage of the default middleware listed above in the Django framework:

Default Middlewares Operations Descriptions djangosecure.Middleware.SecurityMiddleware X-Frame-Options: DENY Limits the pages displayed to be within a frame. HTTP Strict Transport Security Setting this allows the website to be accessible to the browser only on HTTPS instead of HTTP. X-Content-Type-Options: nosniff This option helps to prevent against MIME sniffing vulnerabilities. X-XSS-Protection: 1; mode=block When an XSS(Cross-site scripting) attack is detected, it stops the website pages from getting further loaded. SSL Redirect Detecting proxied SSL In rare instances, the request.is_secure(), the method returns false for valid requests; setting this option will help to set an alternative header to the secured external connection. Rewriting of URLs based on APPEND_SLASH and PREPEND_WWW settings. When APPEND_SLASH is TRUE, and the URL does not have a ‘/,’ then the new URL will have a slash at the end of the URL. NA Restrict access for the users listed in DISALLOWED_USER_AGENTS setting django.contrib.sessions.middleware.SessionMiddleware When the session Middleware is activated, every HttpRequest object will have a session attribute tagged as the first argument. This is a dictionary object, and session values can be inserted into this dictionary object using a request. Session anywhere in the view file. Django. middleware.csrf.CsrfViewMiddleware This middleware option allows protection against all cross-site request forgeries. django.contrib.auth.middleware.AuthenticationMiddleware django.contrib.messages.middleware.MessageMiddleware This middleware will handle all temporary messages between the website and the web browser. Limits the pages displayed to be within a frame. How does middleware work in Django?

Below are the key points on the working of middleware in Django,

The order of declaration for the middleware components is significant.

The middleware classes get executed twice in the request/response lifecycle.

During a request, the classes are executed from top to bottom order.

During a response, these classes get executed from bottom to top order. This is why the order of the components is significant.

The _init_ method is executed during the start of the server.

the _call__ method is executed for every request.

Mandatory Methods in a Middleware

The middleware must include at least one of the methods listed below:

If middleware needs to process during request:


process_view(request, view_func, view_args, view_kwargs)

If middleware needs to process during response:

process_exception(request, exception) (only if the view raised an exception)

process_template_response(request, response) (only for template responses)

process_response(request, response)

Custom Middleware

1. Place a file called chúng tôi anywhere inside the project. The location where this middleware file has been placed is not a big deal, as per the Django setup. The crucial aspect is ensuring that this file’s path is accurately specified in the middleware list within the chúng tôi file. This is the most important element.

class NewMiddleware: def __init__(self, get_request): self.get_request = get_request def __call__(self, request): request = self.get_request(request) print("The Newly installed middleware is successfully triggered!!!") return request MIDDLEWARE = [ '', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', # Userdefined Middleware 'Django_app1.middleware.NewMiddleware', ]

Recommended Articles

We hope that this EDUCBA information on “Django Middleware” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

Excel Sparklines – A Complete Guide With Examples

Sparklines feature was introduced in Excel 2010.

In this article, you’ll learn all about Excel Sparklines and see some useful examples of it.

Sparklines are tiny charts that reside in a cell in Excel. These charts are used to show a trend over time or the variation in the dataset.

You can use these sparklines to make your bland data look better by adding this layer of visual analysis.

While Sparklines are tiny charts, they have limited functionality (as compared with regular charts in Excel). Despite that, Sparklines are great as you can create these easy to show a trend (and even outliers/high-low points) and make your reports and dashboard more reader-friendly.

Unlike regular charts, Sparklines are not objects. These reside in a cell as the background of that cell.

In Excel, there are three types of sparklines:




In the below image, I have created an example of all these three types of sparklines.

The first one in G2 is a line type sparkline, in G3 is a column type and in G4 is the win-loss type.

Here are a few important things to know about Excel Sparklines:

Sparklines are dynamic and are dependent on the underlying dataset. When the underlying dataset changes, the sparkline would automatically update. This makes it a useful tool to use when creating Excel dashboards.

Sparklines size is dependent on the size of the cell. If you change the cell height or width, the sparkline would adjust accordingly.

While you have sparkline in a cell, you can also enter a text in it.

You can customize these sparklines – such as change the color, add an axis, highlight maximum/minimum data points, etc. We will see how to do this for each sparkline type later in this tutorial.

Note: A Win-loss sparkline is just like a column sparkline, but it doesn’t show the magnitude of the value. It is better used in situations where the outcome is binary, such as Yes/No, True/False, Head/Tail, 1/-1, etc. For example, if you’re plotting whether it rained in the past 7 days or not, you can plot a win-loss with 1 for days when it rained and -1 for days when it didn’t. In this tutorial, everything covered for column sparklines can also be applied to the win-loss sparklines.

Now let’s cover each of these types of sparklines and all the customizations you can do with it.

Let’s say that you want to insert a line sparkline (as shown below).

Here are the steps to insert a line sparkline in Excel:

Select the cell in which you want the sparkline.

In the ‘Create Sparklines’ dialog box, select the data range (A2:F2 in this example).

This will insert a line sparkline in cell G2.

To insert a ‘Column’ or ‘Win-loss’ sparkline, you need to follow the same above steps, and select Columns or Win-loss instead of the Line (in step 3).

While the above steps insert a basic sparkline in the cell, you can do some customization to make it better.

When you select a cell that has a Sparkline, you’ll notice that a contextual tab – Sparkline Tools Design – becomes available. In this contextual tab, you’ll find all the customization option for the selected sparkline type.

Edit Group Location & Data: Use this when you have grouped multiple sparklines and you want to change the data for the entire group (grouping is covered later in this tutorial).

Edit Single Sparkline’s Data: Use this to change the data for the selected sparkline only.

When you create a line sparkline with a dataset that has an empty cell, you will notice that the sparkline shows a gap for that empty cell.

In the above dataset, the value for April is missing which creates a gap in the first sparkline.

Here is an example where there is a missing data point in a column sparkline.

You can specify how you want these empty cells to be treated.

Here are the steps:

In the drop-down, select ‘Hidden & Empty Cells’ option.

In the dialog box that opens, select whether you want to show

Empty cells as gaps

Empty cells as zero

Connect the before and after data points with a line [this option is available for line sparklines only].

In case the data for the sparkline is in cells that are hidden, you can check the ‘Show data in hidden rows and columns’ to make sure the data form these cells is also plotted. If you don’t do this, data from hidden cells will be ignored.

Below is an example of all three options for a line sparkline:

Cell G2 is what happens when you choose to show a gap in the sparkline.

Cell G3 is what happens when you choose to show a zero instead.

Cell G2 is what happens when you choose to show a continuous line by connecting the data points.

You can do the same with column and win-loss sparklines as well (not the connecting data point option).

If you want to quickly change the sparkline type – from line to column or vice versa, you can do that using the following steps:

In the Type group, select the sparkline you want.

While a simple sparkline shows the trend over time, you can also use some markers and highlights to make it more meaningful.

For example, you can highlight the maximum and the minimum data points, first and the last data point, as well as all the negative data points.

Below is an example where I have highlighted the maximum and minimum data points in a line and column sparkline.

These options are available in the Sparkline Tools tab (in the show group).

Here are the different options available:

High/Low Point: You can use any one or both of these to highlight the maximum and/or the minimum data point.

First/Last Point: You can use any one or both of these to highlight the first and/or the last data point.

Negative Points: In case you have negative data points, you can use this option to highlight all of these at once.

Markers: This option is available only for line sparklines. It will highlight all the data points with a marker. You can change the color of the marker using the ‘Marker Color’ option.

You can change the way sparklines look using the style and color options.

It allows you to change the sparkline color (of lines or columns) as well as the markers.

Pro Tip: If you’re are using markers to highlight certain data points, it’s a good idea to choose a line color that is light in color and marker that is bright and dark (red works great in most cases).

When you create a sparkline, in its default form, it shows the lowest data point at the bottom and all the other data points are relative to it.

In some cases, you may not want this to be the case as it seems to show a huge variation.

In the below example, the variation is only 5 points (where the entire data set is between 95 and 100). But since the axis starts from the lowest point (which is 95), the variation looks huge.

This difference is a lot more prominent in a column sparkline:

In the above column sparkline, it may look like the Jan value is close to 0.

To adjust this, you can change the axis in the sparklines (make it start at a specific value).

Here is how to do this:

Select the cell with the sparkline(s).

In the drop-down, select Custom Value (in the Vertical Axis Minimum Value Options).

In the Sparkline Vertical Axis Settings dialog box, enter the value as 0.

This will give you the result as shown below.

By setting the customs value at 0, we have forced the sparkline to start at 0. This gives a true representation of the variation.

Note: In case you have negative numbers in your data set, it’s best to not set the axis. For example, if you set the axis to 0, the negative numbers would not be shown in the sparkline (as it begins from 0).

You can also make the axis visible by selecting the Show Axis option. This is useful only when you have numbers that cross the axis. For example, if you have the axis set at 0 and have both positive and negative numbers, then the axis would be visible.

If you have a number of sparklines in your report or dashboard, you can group some of these together. Doing this makes it easy to make changes to the whole group instead of doing it one by one.

To group Sparklines:

Select the ones that you want to group.

Now when you select any of the Sparkline that has been grouped, it will automatically select all the ones in that group.

You can ungroup these sparklines by using the Ungroup Option.

You can not delete a sparkline by selecting the cell and hitting the delete key.

To delete a sparkline, follow the steps below:

Select the cell that has the sparkline that you want to delete.

You May Also Like the Following Excel Tutorials:

Complete Guide To Docker Registry With Examples

Introduction to Docker Registry

Docker Registry is used to store Docker images i.e. read-only template. In other words, the Docker registry stores Docker repositories that hold Docker images in different tagged versions. It is an open-source, stateless, and highly scalable server-side application. It allows us to control where we want to store our Docker images, we fully own our image distribution pipeline and integrate it with in-house development workflow. Docker registry is only compatible with the Docker engine version 1.6.0 or higher. We can use default storage driver i.e. POSIX file system for development or small deployments however it is recommended to use supported cloud-based storage drivers like S3, Microsoft Azure, Openstack Swift, etc.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

How does Registry work in Docker?

We can run our own registry to integrate with our CI/CD pipeline. So, if there is any commit to source code, the SCM tool would trigger a build on our CI system and if the build is successful, it would push the new image to our registry. The Registry then sends the notification that would trigger a deployment on a staging environment. We can quickly deploy a new image over a large cluster of machines using the CI/CD model. We can share Docker images inside an isolated network using the Docker registry. It supports TLS and basic authentication for securing access to our hosted images.

We can a run private registry as a container using the below command:


$docker push localhost:5000/alpine

In the above example, we have started a registry container named ‘my-registry’ using ‘registry:2’ Docker image and it is listening on port 5000 and restart option is set to ‘always’ so if container stopped in any case, docker daemon will start it automatically.


$docker pull ubuntu


And when we try to push the ‘alpine’ Docker Image the same thing happens. Docker daemon automatically adds ‘’ to the image and tries to push it to official Docker Hub however it requires authentication to push the image to official Docker Hub. We can create our Docker ID and push the Docker image to our Docker ID however we again re-tag the Docker Image with our Docker ID and Docker image name.


$docker push alpine



$docker push sarab303/alpine


We can pass additional options or modified options to change the basic configuration of the registry. For example, changing the default listening port, customize storage location, implement TLS for securing the registry, etc.

Let’s assume that we already have an application listening on port 5000 and we want to expose the registry on port 5003, we can do that as below:


$docker push localhost:5003/alpine


If we want to use different port other than default port on which registry listens within the container, we can change that as well by using environment variable REGISTRY_HTTP_ADDR as shown in the below command:




We can customize the storage location to store the respositories of the registry persistently, we can accomplish this by mounting host location or volume to the container. Here, we run the registry container as below to bind mount the host directory ‘/mnt/registry’ into the registry container at ‘/var/lib/registry/’.


$docker pull localhost:5000/alpine


In the above example, started a new local registry named ‘my-registry’ and tagged the ‘alpine’ Docker image to ‘localhost:5000/alpine’ and pushed it to the local registry, then stopped the registry container and deleted it. Also removed locally available ‘alpine’ and ‘localhost:5000/alpine’ Docker images from the host. Now, again started a new registry container and mounted the same host directory to this container and tried to pull the earlier pushed Docker image i.e. ‘localhost:5000/alpine’ and it is successful.

However, the above implementation is only for testing purposes as there is no authentication mechanism is implemented. Let’s implement basic authentication for our private registry by generating an ‘htpasswd’ file and self-signed certificates using below commands.


-x509 -days 365 -out certs/domain.crt

In the above example, we have created a directory called ‘auth’ and ‘certs’ to store the htpasswd credentials and self signed certificates respectively. First, we have created the user ‘user1’ with the password ‘[email protected]’ and stored it in the ‘htpasswd’ file under ‘auth’ folder, then generated self signed certificates using openssl and stored the ‘domain.key’ and ‘domain.crt’ files in the ‘certs’ folder keeping all details blank except the common name of the server.

Now, we create a new container with additional options and mounting the certs and auth folders to it.




$docker push localhost:443/nginx


In the above snapshot, tagged the ‘nginx’ Docker image to ‘localhost:443/nginx’ and tried to push to the newly setup private registry however we can see that it is giving error that says ‘no basic auth credentials’. Logged into the private registry using the credentials of ‘user1’ and the image has been pushed to the private registry successfully.


Docker Registry is a great solution for hosting on-pre private registry, however, there are alternatives available for Docker Registry like Docker Hub which is free to use, hosted registry by Docker, need to pay for additional features though, and DTR i.e. Docker Trusted Registry is a commercially supported version of the registry, comes with Docker Enterprise Edition.

Recommended Articles

This is a guide to Docker Registry. Here we discuss the introduction to Docker Registry along with how registry work. You may also have a look at the following articles to learn more –

Update the detailed information about Complete Guide On Loan Note With Working And Example on the website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!