Docker

by 19.03.8 | Debian 9

An open source tool to build and manage containers.

Docker allows you to create virtualized sandboxes to run and deploy software called containers. Docker can create and use images pulled from a container registry to build the environment for code, libraries, system settings, and more. Docker containers are flexible enough to run services in their own separate environments or wrap entire applications and their dependencies in virtualized and shareable containers. Use Docker to explore ready-to-go containers for popular applications without worrying about dependencies.

Setting up Docker on your Linode is easier than ever by just pushing a button to start running the Docker One-Click App.

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 will be able to access Docker from the console via SSH with your Linode’s IPv4 address:

  1. SSH into your Linode and create a limited user account.
  2. Log out and log back in as your 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 your image:sudo docker container run --publish 8000:8080 --detach --name bb bulletinboard:1.0
  8. Visit your application in the browser by going to http://198.51.100.0:8000, replacing the IP address with the public IP of your Linode.
Application Reference Image

9. To delete the container run:

sudo docker container rm --force bb

Next Steps

For more on Docker, checkout the following guides:

This One-Click App was built by Linode. For support regarding app deployment, contact Linode Support via the information listed in the sidebar. For support regarding the tool or software itself, visit Docker Support.