![]() |
VOOZH | about |
This article supplements a webinar series on deploying and managing containerized workloads in the cloud. The series covers the essentials of containers, including container lifecycle management, deploying multi-container applications, scaling workloads, and understanding Kubernetes, along with highlighting best practices for running stateful applications.
This tutorial includes the concepts and commands covered in the first session in the series, Getting Started with Containers.
Docker is a platform to deploy and manage containerized applications. Containers are popular among developers, administrators, and devops engineers due to the flexibility they offer.
Docker has three essential components:
Docker Engine provides the core capabilities of managing containers. It interfaces with the underlying Linux operating system to expose simple APIs to deal with the lifecycle of containers.
Docker Tools are a set of command-line tools that talk to the API exposed by the Docker Engine. They are used to run the containers, create new images, configure storage and networks, and perform many more operations that impact the lifecycle of a container.
Docker Registry is the place where container images are stored. Each image can have multiple versions identified through unique tags. Users pull existing images from the registry and push new images to it. Docker Hub is a hosted registry managed by Docker, Inc. Itβs also possible to run a registry within your own environments to keep the images closer to the engine.
By the end of this tutorial, you will have installed Docker on a DigitalOcean Droplet, managed containers, worked with images, added persistence, and set up a private registry.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This series covers the essentials of containers, including container lifecycle management, deploying multi-container applications, scaling workloads, and understanding Kubernetes, along with highlighting best practices for running stateful applications. These tutorials supplement the by the same name.
Browse Series: 6 tutorials
Cloud Computing Enthusiast
Technical Editor @ DigitalOcean
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Really good article, learned a bunch of new things.
But I am having trouble in understanding the second part of this command after the pipe.
echo '<h1>Hello World from Host</h1>' | sudo tee index.html >/dev/null
Would be awesome if some basic explanations of issued commands were mentioned in the article.
Otherwise a solid 5 / 5!
Really good article for beginners, a couple of suggestions : In Step 1 : Explanation for installing docker commands required. Step 4 : the commands for Docker tag and push are not clear.
Issue with this part :
docker tag your_docker_hub_username/doweb
Which yields :
"docker tag" requires exactly 2 arguments.
See 'docker tag --help'.
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
So it should be instead :
docker tag doweb your_docker_hub_username/doweb
Not sure if its because the command changed, or just an oversight ;)
Wondering how to make the containers to persist, in terms of being able to restart, in case I want to restart a server out say an outage/maintenance.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.