For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to deploy a Docker on Plenit

Read the following tutorial if you want to learn how to set up Docker in Plenit so you can deploy your applications quickly, easily, and securely.

Docker is a software platform that has enjoyed great popularity in recent years among systems teams, developers and, of course, DevOps, because it allows heterogeneous solutions to be created, tested, and deployed extremely quickly, without compromising the security of the solution.

When deployed, this packages the software inside a container, which is a standard unit that includes basic software, libraries, tools, and other elements that allow the deployed software to run.

In addition, it is a solution that allows the deployed elements to be modified, so inside a container other elements can be added, complementary software, etc. This solution is widely supported by systems and providers across all segments, and as it could not be otherwise, at Plenit we not only offer you the possibility of deploying them, but also help you do it.

How do you set up Docker in Plenit?

Prerequisites or pre-configuration

To successfully complete this tutorial and be able to set up Docker in Plenit you will need:

  • On the one hand, to be registered on the Plenit Platform with an organization and be registered in it after logging in Log-in

  • Have a Ubuntu server within the subscription.

  • A user with administrator privileges either through "root" or using the "sudo" command.

Step 1. Install the container service on my Ubuntu Linux

The first thing we must do is update the apt package list.

To do this, we can use the command from root or with a user allowed in the sudoers list.

# apt-get update

or

After this, we will proceed to install the packages to enable the use of apt repositories over HTTPS.

or

NOTE: From now on we will omit one of the two options so as not to make the tutorial longer than necessary, but we must bear in mind that it will always be possible to use either "sudo" or the command with root or another user with elevated permissions.

Step 1. We update the package list and install support for HTTPS

Next, we add the project's official GPG key:

We add the official repository, replacing the one that comes by default in Ubuntu 20.04:

Step 1. We add Docker's GPG key and add the official repository

Finally, we proceed to install the Docker package:

Step 1. We launch the Docker installation from the Ubuntu CLI

At this point, the package is supposed to be installed already, but to make sure, we proceed to run a command that will check whether the service is running.

Step 1. We check that the Docker service is running correctly

Another test that can be done is the service's own test, that is, running the command and waiting for it to return the available options.

or

Step 1. We check that the Docker command is operational.

Another test can be to run Docker's "Hello World" command, that is, the classic "Hello World" so well known in computing.

Step 1. We launch a Docker Hello World

Conclusions:

As you can see, setting up Docker on Plenit's Ubuntu Linux servers is very easy to do by following the steps we have described.

In this case we have seen how to deploy the container service on our GNU/Linux servers, Ubuntu 20.04 (the latest version available as of this date) but the same procedure can be used for other versions with slight changes.

Thanks for joining us!

Last updated

Was this helpful?