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:
- SSH into your Linode and create a limited user account.
- Log out and log back in as your 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 your image:
sudo docker container run --publish 8000:8080 --detach --name bb bulletinboard:1.0
- 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.
9. To delete the container run:
sudo docker container rm --force bb
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
The Docker 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.