Deploying Docker through the Linode Marketplace

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Create a Linode account to try this guide with a $100 credit.
This credit will be applied to any valid services used during your first 60 days.

Docker is a tool that enables you to create, deploy, and manage lightweight, stand-alone packages that contain that contain code, libraries, runtime, system settings, and dependencies that are required to run an application. These packages are called containers.

Each container is deployed with its own CPU, memory, block I/O, and network resources, without having to depend upon an individual kernel and operating system. While it may be easiest to compare Docker and virtual machines, they differ in the way they share or dedicate resources.

Deploying the Docker Marketplace App

The Linode Marketplace allows you to easily deploy software on a Linode using the Linode Cloud Manager.

  1. Log in to the Cloud Manager and select the Marketplace link from the left navigation menu. This displays the Linode Compute Create page with the Marketplace tab pre-selected.

  2. Under the Select App section, select the app you would like to deploy.

  3. Fill out all required Options for the selected app as well as any desired Advanced Options (which are optional). See the Configuration Options section for details.

  4. Complete the rest of the form as discussed within the Getting Started > Create a Linode.

  5. Click the Create Linode button. Once the Linode has provisioned and has fully powered on, wait for the software installation to complete. If the Linode is powered off or restarted before this time, the software installation will likely fail. To determine if the installation has completed, open the Linode’s Lish console and wait for the system login prompt to appear.

  6. Follow the instructions within the Getting Started After Deployment section.

Software installation should complete within 2-5 minutes after the Linode has finished provisioning.

Configuration Options

Docker Options

ConfigurationDescription
Resource to DownloadThe url to a hosted Dockerfile or docker-compose.yml file to be used to assemble an image as part of the application creation process.
Command to runA Docker Command to be run as part of the application creation process.
The limited sudo user to be created for the LinodeThis is the limited user account to be created for the Linode. This account has sudo user privileges.
The password for the limited sudo userSet a password for the limited sudo user. The password must meet the complexity strength validation requirements for a strong password. This password can be used to perform any action on the server, similar to root, so make it long, complex, and unique.
The SSH Public Key that is used to access the LinodeTo access using SSH keys (recommended) rather than password, enter the public key here. For more information, see SSH add keys.
Disable root access over SSH?Select Yes to block the root account from logging into the server via SSH. Select No to allow the root account to login via SSH.
Your Linode API Token.Linode API access token is needed to create any DNS records. If you don’t have a token, you must create one to configure DNS.
SubdomainThe subdomain you want the installer to create a DNS record for during setup. The subdomain should only be provided if you also provide a domain and API Token.
DomainThe domain name you want to create as part of the application creation process. The installer creates a DNS record for this domain during setup if you provide this field along with your API Token.
Do you need an MX record for this domain?Select Yes to create a basic MX record for the domain. Select No to create no MX records.
Do you need an SPF record for this domain?Select Yes to create a basic SPF record for the domain. Select No to create no SPF records.

General Options

For advice on filling out the remaining options on the Create a Linode form, see Getting Started > Create a Linode. That said, some options may be limited or recommended based on this Marketplace App:

  • Supported distributions: Debian 9
  • Recommended minimum plan: All plan types and sizes can be used.

Getting Started after Deployment

Docker is now installed and ready to use. The following steps provide a sample application to get you started with an easy example to demonstrate some basic Docker functionality. It is not necessary for Docker set-up.

Access Docker

After Docker has finished installing, you can access Docker from the console via SSH with the IPv4 address of the Linode:

  1. SSH into the Linode and create a limited user account.

  2. Log out and log back in with the limited user account.

  3. Install the unzip package from the package manager:

    sudo apt install unzip
    
  4. Download the example node-bulletin-board project and unzip it:

    curl -LO https://github.com/dockersamples/node-bulletin-board/archive/master.zip
    unzip master.zip
    
  5. Move into the example project directory:

    cd node-bulletin-board-master/bulletin-board-app
    
  6. Build the image with the following command:

    sudo docker image build -t bulletinboard:1.0 .
    
  7. Start a container with the image:

    sudo docker container run --publish 8000:8080 --detach --name bb bulletinboard:1.0
    
  8. Visit the application in the browser by going to http://198.51.100.0:8000, replacing the IP address with the public IP of the Linode.

  9. To delete the container run:

    sudo docker container rm --force bb
    

Next Steps

Note
Currently, Linode does not manage software and systems updates for Marketplace Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.

For more on Docker, checkout the following guides:

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

This page was originally published on


Your Feedback Is Important

Let us know if this guide made it easy to get the answer you needed.


Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the guide. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.