Deploying Docker through the Linode Marketplace
Traducciones al EspañolEstamos 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.
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.
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.
Under the Select App section, select the app you would like to deploy.
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.
Complete the rest of the form as discussed within the Getting Started > Create a Linode.
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.
Follow the instructions within the Getting Started After Deployment section.
Software installation should complete within 2-5 minutes after the Linode has finished provisioning.
|Resource to Download||The 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 run||A Docker Command to be run as part of the application creation process.|
|The limited sudo user to be created for the Linode||This is the limited user account to be created for the Linode. This account has sudo user privileges.|
|The password for the limited sudo user||Set 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 will be used to access the Linode||If you wish to access SSH via Public Key (recommended) rather than by password, enter the public key here.|
|Disable root access over SSH?||Select |
|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.|
|Subdomain||The 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||The 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 |
|Do you need an MX record for this domain?||Select |
|Do you need an SPF record for this domain?||Select |
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.
After Docker has finished installing, you can access Docker from the console via SSH with the IPv4 address of the Linode:
Log out and log back in with the limited user account.
Install the unzip package from the package manager:
sudo apt install unzip
Download the example
node-bulletin-boardproject and unzip it:
curl -LO https://github.com/dockersamples/node-bulletin-board/archive/master.zip unzip master.zip
Move into the example project directory:
Build the image with the following command:
sudo docker image build -t bulletinboard:1.0 .
Start a container with the image:
sudo docker container run --publish 8000:8080 --detach --name bb bulletinboard:1.0
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.
To delete the container run:
sudo docker container rm --force bb
NoteCurrently, 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:
- An Introduction to Docker
- How to Use Docker Files
- How to Use Docker Compose
- How to Connect Docker Containers
- How to Create a Docker Swarm Manager and Nodes on a Linode
- Create and Deploy a Docker Container Image to a Kubernetes Cluster
- Manage a Docker Cluster with Kubernetes
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