Bobcares

How to install Docker in your Linode?

by | Jan 31, 2019

Linode allows you to install multiple applications on the same server. But at times, there can be a requirement to isolate certain apps due to security reasons.

That’s where Docker helps.

Docker is a tool that allows to create and deploy packages needed to run an application on independent containers. Often, doing wrong steps while installing Docker may end up in errors.

At Bobcares, we help Linode owners to properly setup Docker as part of our Managed Cloud Services.

Today, we’ll see how our Cloud Engineers install Docker on Linode and fix common setup errors.

 

 

Why Docker ?

Firstly, let’s take a look on how Docker helps Linode server owners.

Suppose, you have developed an app and wish to replicate it to many servers. Docker comes handy here. It helps you to run the same app in different Docker containers inside the Linode server. Thus, it helps in easy deployment, saving time and effort.

Also, Docker helps you to isolate container from each other. As a result, you can implement separate security mechanisms in each container.

Similarly, it can reduce inventory costs as the Docker containers run on the existing Linode server.

Again, Developers can make use of Docker to test the applications and features.

Luckily, many popular projects like Linux-Apache-MySQL-PHP (LAMP) maintain predefined templates that can be used on the go. And, that’s another reason to go ahead with Docker in Linode.

How to setup Docker in Linode?

We’ve seen the various benefits of Docker. Let’s take a look on how our Support Engineers setup Docker in Linode servers.

Before installing Docker, our Linode Experts ensure that server runs on a 64-bit architecture, has all packages updated and has live internet connection.

Then, we get the packages from the  docker website. For example, in a CentOS 7 server we complete the Docker installation by executing these commands.

curl -fsSL https://get.docker.com/ | sh
systemctl enable docker
systemctl start docker

After installation, to confirm the status of Docker, we use

systemctl status docker

And a successful docker installation would show the following results.

[root@lixx-xx1 ~]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since xxx; 

Common errors with Docker setup in Linode

Although installing docker in Linode is rather simple, we often see Linode customers complain about errors in Docker. Let’s have a look at the top errors that we see.

 

1. Docker not starting up

Recently, a customer reported that Docker setup was not going through. The error said:

Aug 24 11:57:32 localhost systemd[1]: Failed to start Docker Application Container Engine.
Aug 24 11:57:32 localhost systemd[1]: docker.service: Unit entered failed state.
Aug 24 11:57:32 localhost systemd[1]: docker.service: Failed with result 'exit-code'.

Here, our Dedicated Engineers started troubleshooting by checking the kernel version on the Linode server. Docker relies on a few kernel modules like OverlayFS. Unfortunately, the customer had an old Linode kernel that doesn’t include this module support. So, to make Docker running, we had to install the latest Kernel on the server and then redo the Docker set up.

 

2. Unsupported operating system

Yet another reason for Docker set up errors is unsupported server types. Docker team currently imposes the 64 bit restriction to keep their code cleaner. As a result, any attempt to setup Docker on 32-bit Linode server will simply fail.

That’s why, our Dedicated Engineers always check and ensure the basic requirements prior to the installation of Docker in Linode

[Trouble installing docker in Linode? Our Linode Experts can fix it for you.]

 

Conclusion

Installing Docker in Linode helps to create any number of containers with all the packages for your app. Today, we saw how our Support Engineers effectively setup Docker in Linode servers and fix common installation errors.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

2 Comments

  1. Terry Bellamy

    I am attempting to use the following command in my linode.

    sudo docker-compose up -d

    I am receiving an error saying
    “ERROR /docker-compose.ymal is not supported. You might be seeing this because you’re using the wrong compose.

    I ran the command to check that it is running, and it says that it is running.

    If you can help that would be great.

    Thank you

    Reply
    • Hiba Razak

      Hi,
      Our experts can help you with the issue.we will be happy to talk to you through our live chat(click on the icon at right-bottom).

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF