Docker para desenvolvedores (com docker swarm e kubernetes) [author] videos

Estimated reading time: 2 minutes

Docker and the broader community of Docker experts have put together many different ways to get further training and hands-on experience with Docker. Expand your understanding of Docker and Kubernetes with these additional free and paid resources.

Hosted labs

These self-paced and hands-on workshops use a free, hosted environment (Play with Kubernetes) that does not require any installation. Follow along and learn more about Kubernetes.

  • Kubernetes Workshop

  • Labs are free but require registration with a Docker ID.

Self-guided tutorials

Created by experts in the Docker community, these free tutorials provide guided step-by-step workflows for working with the Docker platform.

  • Integrating Docker with Your IDE
    • Java Development: Eclipse
    • Java Development: IntelliJ
    • Java Development: Netbeans
    • Live Debugging Node.js with Docker and Visual Studio Code
  • Windows Containers
    • Windows Container Setup
    • Windows Container Basics
    • Windows Containers Multi-Container Applications

Books

If books are your preferred learning style, check out these written by the Docker Captains. Docker Captain is a distinction that Docker awards to select members of the community that are both experts in their field and are committed to sharing their Docker knowledge with others.

  • Learn Docker in a Month of Lunches, Elton Stoneman. Use the code stonemanpc for a 40% discount.
  • Docker on Windows: From 101 to Production with Docker on Windows, Elton Stoneman
  • Learn Kubernetes in a Month of Lunches, Elton Stoneman. Use the code stonemanpc for a 40% discount.
  • Docker in Action 2nd Edition Jeff Nickoloff, Oct 2019
  • The Kubernetes Book, Nigel Poulton, Nov 2018
  • Docker Deep Dive, Nigel Poulton, March 2018
  • [Portuguese] Docker para desenvolvedores (2017) by Rafael Gomes

CLI cheat sheet

The Docker CLI cheat sheet features the common Docker CLI commands for easy reference. It covers working with Images, Containers, Docker Hub, and other general purpose commands.

Self-Paced online learning

A number of Docker Captains have also created video courses on Docker and Kubernetes.

  • Bret Fisher: Docker Mastery, Docker Swarm Mastery, Docker Mastery for Node.js Projects
  • Elton Stoneman: Docker for .NET Apps - on Linux and Windows. Includes the discount code 644ABCBC33F474541885.
  • Nick Janetakis Dive into Docker, Docker for DevOps
  • Nigel Poulton: Kubernetes 101, Getting Started with Kubernetes, Docker and Kubernetes: The Big Picture, Kubernetes Deep Dive, Docker Deep Dive
  • Arun Gupta: Docker for Java Developers
  • Ajeet Singh Raina: Docker and Kubernetes Labs
  • [French] Luc Juggery: Introduction to Kubernetes, The Docker Platform

* Many of the courses are fee-based

get started, setup, orientation, quickstart, intro, concepts, kubernetes, docker desktop

Estimated reading time: 3 minutes

To use Docker in swarm mode, install Docker. See installation instructions for all operating systems and platforms.

Current versions of Docker include swarm mode for natively managing a cluster of Docker Engines called a swarm. Use the Docker CLI to create a swarm, deploy application services to a swarm, and manage swarm behavior.

Docker Swarm mode is built into the Docker Engine. Do not confuse Docker Swarm mode with Docker Classic Swarm which is no longer actively developed.

Feature highlights

  • Cluster management integrated with Docker Engine: Use the Docker Engine CLI to create a swarm of Docker Engines where you can deploy application services. You don’t need additional orchestration software to create or manage a swarm.

  • Decentralized design: Instead of handling differentiation between node roles at deployment time, the Docker Engine handles any specialization at runtime. You can deploy both kinds of nodes, managers and workers, using the Docker Engine. This means you can build an entire swarm from a single disk image.

  • Declarative service model: Docker Engine uses a declarative approach to let you define the desired state of the various services in your application stack. For example, you might describe an application comprised of a web front end service with message queueing services and a database backend.

  • Scaling: For each service, you can declare the number of tasks you want to run. When you scale up or down, the swarm manager automatically adapts by adding or removing tasks to maintain the desired state.

  • Desired state reconciliation: The swarm manager node constantly monitors the cluster state and reconciles any differences between the actual state and your expressed desired state. For example, if you set up a service to run 10 replicas of a container, and a worker machine hosting two of those replicas crashes, the manager creates two new replicas to replace the replicas that crashed. The swarm manager assigns the new replicas to workers that are running and available.

  • Multi-host networking: You can specify an overlay network for your services. The swarm manager automatically assigns addresses to the containers on the overlay network when it initializes or updates the application.

  • Service discovery: Swarm manager nodes assign each service in the swarm a unique DNS name and load balances running containers. You can query every container running in the swarm through a DNS server embedded in the swarm.

  • Load balancing: You can expose the ports for services to an external load balancer. Internally, the swarm lets you specify how to distribute service containers between nodes.

  • Secure by default: Each node in the swarm enforces TLS mutual authentication and encryption to secure communications between itself and all other nodes. You have the option to use self-signed root certificates or certificates from a custom root CA.

  • Rolling updates: At rollout time you can apply service updates to nodes incrementally. The swarm manager lets you control the delay between service deployment to different sets of nodes. If anything goes wrong, you can roll back to a previous version of the service.

What’s next?

Swarm mode key concepts and tutorial

  • Learn swarm mode key concepts.

  • Get started with the Swarm mode tutorial.

Swarm mode CLI commands

Explore swarm mode CLI commands

  • swarm init
  • swarm join
  • service create
  • service inspect
  • service ls
  • service rm
  • service scale
  • service ps
  • service update
docker, container, cluster, swarm