Transcript for:
Guide on Installing Docker on VPS

foreign [Music] welcome back to our Channel today we're going to guide you step by step on how to install Docker on your VPS if you're looking to containerize your applications you're in the right place Docker allows you to create deploy and run applications in containers which are lightweight and self-sufficient installing it on a VPS means you can deploy your containerized apps anywhere in the world we are going to look at how to install Docker on a cantabbo VPS cantabbo has made it easy to install Docker you can run Docker out of the box a new server can be pre-installed with the docker engine on common Linux distributions cantabbo is a popular VPS provider and Docker is a highly sought after containerization tool let's go step by step on how to install Docker on a contabo VPS first you need to purchase a cantabbo VPS select a VPS according to your requirements for this demonstration I will go for the cloud VPS small plan if you want to get your hands on a cantabbo VPS the link is in the description first decide on a payment plan whether to pay monthly yearly and so on paying yearly will be much cheaper than paying monthly in the long run and there will be no setup fee these are the specifications you will get for the contambo small plan eight gigabytes of RAM 4 CPU cores and one snapshot you can go for a higher plan according to what specifications you need like I mentioned in the monthly plan you have to pay a setup fee for the VPS but in the yearly plan you don't have to pay the setup fee next select a region near to where you stay selecting a server near your region or near the majority of your users is important for a variety of reasons lower latency proximity often results in lower latency latency is the time taken for data to travel from the source eg a user's computer to the destination EG your server and back lower latency ensures faster response times which can be particularly crucial for time sensitive operations or real-time applications like gaming stock trading and video conferencing next select the storage type you can choose either nvme or SSD for your VPS instance you can research more know the differences I will just go for the default now it's time to choose the operating system you are going to use for your VPS in this tutorial I will go for Ubuntu 22.04 LTS next enter a root password for your VPS make sure you do not forget it you can leave the rest of the settings at the default and click next if you want to on the next screen enter your personal details when done you can click next and go ahead to make a payment we forgot one crucial step we needed to go on the apps and panel tab to select Docker so it can be pre-installed on your system but even if you do not select it you can still install it later choose Docker and the operating system version you are going to install it on finish entering the details and make a payment once your system is set up you will receive an email like this with your login details when you log into your dashboard you will see an interface like this one where you can manage your VPS machines when you are on a Windows machine or Ubuntu you can use an SSH client like putty to connect to your VPS machine I already saved the login details just need to load them you can do the same to save on time from entering the IP address all the time enter the username and password of your system and login you can configure your system from this command line but since I'm on a Linux machine I prefer using the terminal so let me connect to the VPS machine using the terminal instead now let's make sure Docker was installed you can use these commands to check as you can see it says active so Docker was successfully installed you can also use this command to check the status of the docker to exit just press Ctrl then the c key we are done now let us look at how to install Docker on a digitalocean VPS you have to buy yourself a VPS from digitalocean if you don't have one already the link is in the video description buying and setting up a virtual private server VPS on digitalocean is straightforward digitalocean refers to its virtual private servers as droplets first of all you have to sign up you can sign up with using your Google account GitHub or email address once registered you'll be prompted to enter your billing information digitalocean accepts credit cards and some payment services like PayPal you might also get an option for some free credits as part of promotional offers once logged in you can click on create a virtual machine or you can click on the green create button in the top right corner and select droplets next choose a data center region it's usually best to choose a data center closest to the majority of your users or your location scroll down and choose an image this is the OS or application stack for beginners a standard distribution like Ubuntu is a common choice so here we'll select Ubuntu 22.0 for LTS next choose a plan digitalocean offers multiple pricing tiers based on CPU memory and storage for small projects the basic plans might be sufficient I will go for the 32 dollars per month because we'll be running a number of applications for authentication you can choose either a password or SSH key for added security using SSH Keys is recommended you still need to set up the root password since you will need it when using SSH to connect to the VPS finalize and create pick any additional options like backups give your droplet a hostname and click create droplet the VPS is now being created just wait for a few seconds the VPS is now created take note of the IP address this is the IP address of the VPS and you will use it to connect to the VPS using SSH if you're on Windows you might use an SSH client like putty to access your droplet since I'm on a Linux machine will just use the terminal I'm now logged in to install Docker on a digitalocean VPS commonly referred to as a droplet you would typically use the standard Docker installation for a Linux based OS run these commands the installation of Docker is complete let us check the version installed by running this command that's it folks you've successfully installed Docker on your VPS now you can containerize your applications and deploy them effortlessly if you found this tutorial helpful give it a thumbs up and don't forget to subscribe for more Tech tutorials